UseVTK40.cmake 755 B

1234567891011121314151617181920
  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. # Load the compiler settings used for VTK.
  6. IF(VTK_BUILD_SETTINGS_FILE)
  7. INCLUDE(CMakeImportBuildSettings)
  8. CMAKE_IMPORT_BUILD_SETTINGS(${VTK_BUILD_SETTINGS_FILE})
  9. ENDIF(VTK_BUILD_SETTINGS_FILE)
  10. # Add compiler flags needed to use VTK.
  11. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
  12. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
  13. # Add include directories needed to use VTK.
  14. INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
  15. # Add link directories needed to use VTK.
  16. LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})