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}) if(MSVC) find_library(WinMM_LIBRARY WinMM REQUIRED) endif() target_link_libraries( BaseLib PUBLIC Boost::algorithm Boost::property_tree range-v3 spdlog::spdlog tclap $<$:${WinMM_LIBRARY}> # needed for timeGetTime $<$:Qt5::Xml> $<$:Qt5::XmlPatterns> $<$:PkgConfig::PETSC> PRIVATE xmlpatch Boost::interprocess ) target_compile_definitions( BaseLib PUBLIC $<$:OGS_FATAL_ABORT> ) target_precompile_headers(BaseLib PRIVATE Error.h ConfigTree.h Logging.h)