Skip to content
Snippets Groups Projects
Commit 0dfd5f33 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[CMake] Simplified VTK linkage.

parent 65d595f0
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,7 @@ target_link_libraries(ApplicationsLib ...@@ -9,9 +9,7 @@ target_link_libraries(ApplicationsLib
MeshGeoToolsLib MeshGeoToolsLib
NumLib NumLib
ProcessLib ProcessLib
${VTK_LIBRARIES}
) )
ADD_VTK_DEPENDENCY(ApplicationsLib)
if(TARGET Eigen) if(TARGET Eigen)
add_dependencies(ApplicationsLib Eigen) add_dependencies(ApplicationsLib Eigen)
......
...@@ -24,11 +24,7 @@ add_library(VtkAct ${SOURCES} ${HEADERS}) ...@@ -24,11 +24,7 @@ add_library(VtkAct ${SOURCES} ${HEADERS})
ADD_VTK_DEPENDENCY(VtkAct) ADD_VTK_DEPENDENCY(VtkAct)
target_link_libraries( VtkAct target_link_libraries(VtkAct Qt5::Core)
Qt5::Core
${VTK_LIBRARIES}
logog
)
set_property(TARGET VtkAct PROPERTY FOLDER "DataExplorer") set_property(TARGET VtkAct PROPERTY FOLDER "DataExplorer")
......
...@@ -27,12 +27,16 @@ if(OGS_USE_PCH) ...@@ -27,12 +27,16 @@ if(OGS_USE_PCH)
endif() endif()
target_link_libraries(MeshLib target_link_libraries(MeshLib
BaseLib PUBLIC BaseLib GeoLib MathLib
GeoLib INTERFACE vtkIOXML
MathLib
${VTK_LIBRARIES}
) )
if(OGS_USE_MPI)
target_link_libraries(MeshLib
INTERFACE vtkIOParallelXML vtkParallelMPI
)
endif()
ADD_VTK_DEPENDENCY(MeshLib) ADD_VTK_DEPENDENCY(MeshLib)
if(TARGET Eigen) if(TARGET Eigen)
......
...@@ -58,8 +58,8 @@ add_library(ProcessLib ${SOURCES}) ...@@ -58,8 +58,8 @@ add_library(ProcessLib ${SOURCES})
target_link_libraries(ProcessLib target_link_libraries(ProcessLib
MaterialLib MaterialLib
MeshGeoToolsLib MeshGeoToolsLib
MeshLib
NumLib # for shape matrices NumLib # for shape matrices
${VTK_LIBRARIES}
) )
ADD_VTK_DEPENDENCY(ProcessLib) ADD_VTK_DEPENDENCY(ProcessLib)
......
Subproject commit 7de4b89efaddefa4172799ac83dc423676e77485 Subproject commit b75cec4813c335bcb80f877df1019ddf12a80da1
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