https://gitlab.opengeosys.org/ogs/ogs.git
Revision e64d5d3ccf3a621499d171cc2d35444ead73b0ec authored by Lars Bilke on 07 January 2023, 20:50:59 UTC, committed by Lars Bilke on 07 January 2023, 20:50:59 UTC
Fixes for sanitizer job and MSVC release config

See merge request ogs/ogs!4432
2 parent s b0756c3 + 3e60d14
Raw File
Tip revision: e64d5d3ccf3a621499d171cc2d35444ead73b0ec authored by Lars Bilke on 07 January 2023, 20:50:59 UTC
Merge branch 'fixes' into 'master'
Tip revision: e64d5d3
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
           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>
)

target_precompile_headers(BaseLib PRIVATE Error.h ConfigTree.h Logging.h)
back to top