ENH: fix advanced bug
[cmake.git] / Modules / UseVTK40.cmake
blob750d44b12cccb3efbccadeba78bcdf803b76018f
3 # This is an implementation detail for using VTK 4.0 with the
4 # FindVTK.cmake module.  Do not include directly by name.  This should
5 # be included only when FindVTK.cmake sets the VTK_USE_FILE variable
6 # to point here.
8 # Load the compiler settings used for VTK.
9 IF(VTK_BUILD_SETTINGS_FILE)
10   INCLUDE(CMakeImportBuildSettings)
11   CMAKE_IMPORT_BUILD_SETTINGS(${VTK_BUILD_SETTINGS_FILE})
12 ENDIF(VTK_BUILD_SETTINGS_FILE)
14 # Add compiler flags needed to use VTK.
15 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
16 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
18 # Add include directories needed to use VTK.
19 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
21 # Add link directories needed to use VTK.
22 LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})