Revision 01158b1ce1b225f46caad4bc9d321e4e6a14d8fa authored by Thomas Fischer on 07 December 2020, 10:50:49 UTC, committed by Thomas Fischer on 07 December 2020, 10:50:49 UTC
1 parent e087193
Raw File
CMakeLists.txt
# Source files
get_source_files(SOURCES_APPLICATIONSLIB)
set(LIB_SOURCES ${SOURCES_APPLICATIONSLIB})

# Library
ogs_add_library(ApplicationsLib ${LIB_SOURCES})

target_link_libraries(ApplicationsLib
                      PUBLIC BaseLib GeoLib NumLib Processes
                      PRIVATE CMakeInfoLib
                              MathLib
                              MeshLib
                              MeshGeoToolsLib
                              ParameterLib
                              ProcessLib
                              spdlog::spdlog)

# Set cpp definitions if the cmake option is enabled for the given process.
foreach(process ${ProcessesList})
    if(OGS_BUILD_PROCESS_${process})
        string(TOUPPER "OGS_BUILD_PROCESS_${process}" EnableProcess)
        set_property(TARGET ApplicationsLib
                     APPEND
                     PROPERTY COMPILE_DEFINITIONS ${EnableProcess})
    endif()
endforeach()

if(OGS_USE_PYTHON)
    target_link_libraries(ApplicationsLib PRIVATE pybind11::pybind11)
endif()
back to top