Revision d2d1ee08f4b5445fdb0bb814bd090e5739de0199 authored by Thomas Fischer on 24 November 2020, 16:58:00 UTC, committed by Thomas Fischer on 08 December 2020, 10:06:24 UTC
1 parent 2cc6b62
CMakeLists.txt
get_source_files(SOURCES)
# It should be removed too for other MPI based DDC approach in future.
if(NOT OGS_USE_PETSC)
list(REMOVE_ITEM SOURCES NodePartitionedMesh.h)
endif()
append_source_files(SOURCES MeshEditing)
append_source_files(SOURCES MeshGenerators)
append_source_files(SOURCES MeshSearch)
append_source_files(SOURCES Elements)
append_source_files(SOURCES IO)
append_source_files(SOURCES IO/Legacy)
append_source_files(SOURCES IO/VtkIO)
if(OGS_USE_XDMF)
append_source_files(SOURCES IO/XDMF)
endif()
append_source_files(SOURCES MeshQuality)
append_source_files(SOURCES Vtk)
# It could be used for other MPI based DDC approach in future.
if(OGS_USE_PETSC)
append_source_files(SOURCES IO/MPI_IO)
endif()
# Create the library
ogs_add_library(MeshLib ${SOURCES})
target_link_libraries(
MeshLib
PUBLIC
BaseLib GeoLib GitInfoLib MathLib ${VTK_LIBRARIES}
$<$<TARGET_EXISTS:OgsXdmf>:OgsXdmf>
$<$<TARGET_EXISTS:MPI::MPI_CXX>:MPI::MPI_CXX>
PRIVATE
spdlog::spdlog
)
if($ENV{VTK_USE_64BIT_IDS})
target_compile_definitions(MeshLib PUBLIC VTK_USE_64BIT_IDS)
endif()
Computing file changes ...