Skip to content
Snippets Groups Projects
Commit d4bc283c authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] When building DE only do not link to ProcessLib and co.

parent 95243619
No related branches found
No related tags found
No related merge requests found
...@@ -7,17 +7,25 @@ ogs_add_library(ApplicationsLib ${LIB_SOURCES}) ...@@ -7,17 +7,25 @@ ogs_add_library(ApplicationsLib ${LIB_SOURCES})
target_link_libraries( target_link_libraries(
ApplicationsLib ApplicationsLib
PUBLIC BaseLib GeoLib NumLib Processes PUBLIC BaseLib GeoLib NumLib
PRIVATE CMakeInfoLib PRIVATE CMakeInfoLib
MathLib MathLib
MeshLib MeshLib
MeshGeoToolsLib MeshGeoToolsLib
ParameterLib
ProcessLib
$<$<BOOL:${OGS_USE_PYTHON}>:pybind11::pybind11> $<$<BOOL:${OGS_USE_PYTHON}>:pybind11::pybind11>
$<$<BOOL:${OGS_USE_PETSC}>:petsc> $<$<BOOL:${OGS_USE_PETSC}>:petsc>
) )
if(OGS_BUILD_CLI OR OGS_BUILD_UTILS OR OGS_BUILD_TESTING)
target_link_libraries(
ApplicationsLib
PUBLIC Processes
PRIVATE ParameterLib ProcessLib
)
elseif(OGS_BUILD_GUI)
target_link_libraries(ApplicationsLib PRIVATE nlohmann_json)
endif()
if(OGS_USE_LIS) if(OGS_USE_LIS)
target_include_directories(ApplicationsLib PUBLIC ${LIS_INCLUDE_DIR}) target_include_directories(ApplicationsLib PUBLIC ${LIS_INCLUDE_DIR})
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment