Skip to content
Snippets Groups Projects
CMakeLists.txt 672 B
Newer Older
  • Learn to ignore specific revisions
  • Lars Bilke's avatar
    Lars Bilke committed
    get_source_files(SOURCES)
    append_source_files(SOURCES IO)
    append_source_files(SOURCES IO/XmlIO)
    
    Lars Bilke's avatar
    Lars Bilke committed
        append_source_files(SOURCES IO/XmlIO/Qt)
    
    Tom Fischer's avatar
    Tom Fischer committed
    endif()
    
    
    # Create the library
    
    ogs_add_library(BaseLib ${SOURCES})
    
    Lars Bilke's avatar
    Lars Bilke committed
    
    
    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>
    
    Lars Bilke's avatar
    Lars Bilke committed
    
    
    target_compile_definitions(
        BaseLib PUBLIC $<$<BOOL:${OGS_FATAL_ABORT}>:OGS_FATAL_ABORT>
    
        PRIVATE $<$<BOOL:${OGS_USE_PETSC}>:USE_PETSC>
    
    Lars Bilke's avatar
    Lars Bilke committed
    )