Link just against required VTK modules on Linux.

Note:
If VTK is installed below /opt or anywhere else just add a path to GLOB_RECURSE.
This commit is contained in:
Johannes Obermayr
2016-10-04 20:19:38 +02:00
committed by wmayer
parent dd13cb2534
commit 69fa118b08
6 changed files with 23 additions and 36 deletions

View File

@@ -6,7 +6,6 @@ endif(MSVC)
if (BUILD_SMESH)
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
include(${VTK_USE_FILE})
endif(BUILD_SMESH)
if(BUILD_FEM_NETGEN)
@@ -21,6 +20,7 @@ include_directories(
${PYTHON_INCLUDE_DIRS}
${XercesC_INCLUDE_DIRS}
${SMESH_INCLUDE_DIR}
${VTK_INCLUDE_DIRS}
)