Skip to content
Snippets Groups Projects
Commit b2ad827e authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/MeshEdit] Disable build of non-MPI tools in MPI config.

parent 36a3316d
No related branches found
No related tags found
No related merge requests found
set(TOOLS if(NOT OGS_USE_MPI)
AddElementQuality set(TOOLS
AddFaultToVoxelGrid AddElementQuality
AddLayer AddFaultToVoxelGrid
appendLinesAlongPolyline AddLayer
checkMesh appendLinesAlongPolyline
convertToLinearMesh checkMesh
CreateBoundaryConditionsAlongPolylines convertToLinearMesh
createLayeredMeshFromRasters CreateBoundaryConditionsAlongPolylines
createQuadraticMesh createLayeredMeshFromRasters
editMaterialID createQuadraticMesh
ExtractBoundary editMaterialID
ExtractMaterials ExtractBoundary
ExtractSurface ExtractMaterials
Layers2Grid ExtractSurface
MapGeometryToMeshSurface Layers2Grid
MoveMesh MapGeometryToMeshSurface
moveMeshNodes MoveMesh
NodeReordering moveMeshNodes
queryMesh NodeReordering
removeMeshElements queryMesh
ResetPropertiesInPolygonalRegion removeMeshElements
reviseMesh ResetPropertiesInPolygonalRegion
swapNodeCoordinateAxes reviseMesh
Vtu2Grid swapNodeCoordinateAxes
) Vtu2Grid
)
if(OGS_BUILD_GUI)
ogs_add_executable(
RemoveGhostData RemoveGhostData.cpp
${PROJECT_SOURCE_DIR}/ThirdParty/paraview/vtkCleanUnstructuredGrid.cpp
)
target_include_directories(
RemoveGhostData PRIVATE ${PROJECT_SOURCE_DIR}/ThirdParty/paraview
)
target_link_libraries(RemoveGhostData GitInfoLib MeshLib tclap)
install(TARGETS RemoveGhostData RUNTIME DESTINATION bin)
endif()
foreach(tool ${TOOLS})
ogs_add_executable(${tool} ${tool}.cpp)
target_link_libraries(${tool} GitInfoLib MeshLib tclap)
endforeach()
install(TARGETS ${TOOLS} RUNTIME DESTINATION bin)
if(OGS_BUILD_GUI) target_link_libraries(
ogs_add_executable( appendLinesAlongPolyline MeshGeoToolsLib ApplicationsFileIO
RemoveGhostData RemoveGhostData.cpp
${PROJECT_SOURCE_DIR}/ThirdParty/paraview/vtkCleanUnstructuredGrid.cpp
) )
target_include_directories( target_link_libraries(
RemoveGhostData PRIVATE ${PROJECT_SOURCE_DIR}/ThirdParty/paraview CreateBoundaryConditionsAlongPolylines MeshGeoToolsLib ApplicationsFileIO
) )
target_link_libraries(RemoveGhostData GitInfoLib MeshLib tclap) target_link_libraries(createLayeredMeshFromRasters ApplicationsFileIO)
install(TARGETS RemoveGhostData RUNTIME DESTINATION bin) target_link_libraries(MapGeometryToMeshSurface MeshGeoToolsLib)
target_link_libraries(ResetPropertiesInPolygonalRegion ApplicationsFileIO)
endif() endif()
foreach(tool ${TOOLS})
ogs_add_executable(${tool} ${tool}.cpp)
target_link_libraries(${tool} GitInfoLib MeshLib tclap)
endforeach()
install(TARGETS ${TOOLS} RUNTIME DESTINATION bin)
target_link_libraries(
appendLinesAlongPolyline MeshGeoToolsLib ApplicationsFileIO
)
target_link_libraries(
CreateBoundaryConditionsAlongPolylines MeshGeoToolsLib ApplicationsFileIO
)
target_link_libraries(createLayeredMeshFromRasters ApplicationsFileIO)
target_link_libraries(MapGeometryToMeshSurface MeshGeoToolsLib)
target_link_libraries(ResetPropertiesInPolygonalRegion ApplicationsFileIO)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment