swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 0f177b7ecb8f6f3318894f502c1c8f1bcbddd7d1 authored by Dmitri Naumov on 15 February 2021, 16:25:03 UTC
[T/RM] Use explicit hm coupling in ortho-swelling.
Tip revision: 0f177b7
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)
    if(OGS_USE_PETSC)
        append_source_files(SOURCES IO/XDMF/mpi)
    else()
        append_source_files(SOURCES IO/XDMF/posix)
    endif()
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
)

target_compile_definitions(MeshLib
    PUBLIC
    $<$<BOOL:${OGS_USE_PETSC}>:USE_PETSC>
    $<$<BOOL:$ENV{VTK_USE_64BIT_IDS}>:VTK_USE_64BIT_IDS>
    PRIVATE
    $<$<BOOL:${OGS_USE_XDMF}>:OGS_USE_XDMF>
)
back to top