1 # This is an implementation detail for using VTK 4.0 with the
2 # FindVTK.cmake module. Do not include directly by name. This should
3 # be included only when FindVTK.cmake sets the VTK_USE_FILE variable
6 # Load the compiler settings used for VTK.
7 IF(VTK_BUILD_SETTINGS_FILE)
8 INCLUDE(CMakeImportBuildSettings)
9 CMAKE_IMPORT_BUILD_SETTINGS(${VTK_BUILD_SETTINGS_FILE})
10 ENDIF(VTK_BUILD_SETTINGS_FILE)
12 # Add compiler flags needed to use VTK.
13 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
14 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
16 # Add include directories needed to use VTK.
17 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
19 # Add link directories needed to use VTK.
20 LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})