Revision cb07cd1f82ea90bda0c3e44ad9b96a0028b9736d authored by Lars Bilke on 29 March 2022, 09:43:52 UTC, committed by Lars Bilke on 30 March 2022, 11:05:00 UTC
1 parent fabdee6
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
tclap
$<$<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>
)
Computing file changes ...