OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / share / CMake / Modules / UseVTK40.cmake
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
4 # to point here.
5
6 # Load the compiler settings used for VTK.
7 IF(VTK_BUILD_SETTINGS_FILE)
8   INCLUDE(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
9   CMAKE_IMPORT_BUILD_SETTINGS(${VTK_BUILD_SETTINGS_FILE})
10 ENDIF(VTK_BUILD_SETTINGS_FILE)
11
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}")
15
16 # Add include directories needed to use VTK.
17 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
18
19 # Add link directories needed to use VTK.
20 LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})