swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: f7bfd07ae20ca2ea08b09ae5e0b0b85b5879861f authored by ShuangChen88 on 05 November 2021, 20:50:49 UTC
Merge branch 'BHEs_array_benchmark_docu_update' into 'master'
Tip revision: f7bfd07
CMakeLists.txt
get_source_files(SOURCES)
append_source_files(SOURCES IO)
append_source_files(SOURCES IO/XmlIO)
if(OGS_BUILD_GUI)
    append_source_files(SOURCES IO/XmlIO/Qt)
endif()

# Create the library
ogs_add_library(BaseLib GENERATE_EXPORT_HEADER ${SOURCES})

target_link_libraries(
    BaseLib
    PUBLIC Boost::boost
           spdlog::spdlog
           std::filesystem
           $<$<BOOL:${MSVC}>:WinMM> # needed for timeGetTime
           $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::Xml>
           $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::XmlPatterns>
           $<$<BOOL:${OGS_USE_PETSC}>:petsc>
    PRIVATE xmlpatch
)

target_compile_definitions(
    BaseLib PUBLIC $<$<BOOL:${OGS_FATAL_ABORT}>:OGS_FATAL_ABORT>
)
back to top