diff options
Diffstat (limited to 'Modules/UseVTKLibraries.cmake')
-rw-r--r-- | Modules/UseVTKLibraries.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Modules/UseVTKLibraries.cmake b/Modules/UseVTKLibraries.cmake new file mode 100644 index 0000000..89f801f --- /dev/null +++ b/Modules/UseVTKLibraries.cmake @@ -0,0 +1,25 @@ +# +# This module add the VTK include paths to a project +# It should be included after the FindVTK module +# +IF (USE_INSTALLED_VTK) + IF (VTK_INSTALL_PATH) + LINK_DIRECTORIES ( ${VTK_INSTALL_PATH}/lib ) + ENDIF (VTK_INSTALL_PATH) +ELSE (USE_INSTALLED_VTK) + IF (VTK_SOURCE_PATH) + INCLUDE_DIRECTORIES( + ${VTK_SOURCE_PATH}/Common + ${VTK_SOURCE_PATH}/Filtering + ${VTK_SOURCE_PATH}/IO + ${VTK_SOURCE_PATH}/Graphics + ${VTK_SOURCE_PATH}/Imaging + ${VTK_SOURCE_PATH}/Rendering + ${VTK_SOURCE_PATH}/Hybrid + ${VTK_SOURCE_PATH}/Patented + ${VTK_SOURCE_PATH}/Parallel) + ENDIF (VTK_SOURCE_PATH) + IF (VTK_BIN_PATH) + INCLUDE_DIRECTORIES( ${VTK_BIN_PATH) ) + ENDIF (VTK_BIN_PATH) +ENDIF (USE_INSTALLED_VTK) |