UseVTK40.cmake 758 B

12345678910111213141516171819202122
  1. #
  2. # This is an implementation detail for using VTK 4.0 with the
  3. # FindVTK.cmake module. Do not include directly by name. This should
  4. # be included only when FindVTK.cmake sets the VTK_USE_FILE variable
  5. # to point here.
  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)
  11. # Add compiler flags needed to use VTK.
  12. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
  13. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
  14. # Add include directories needed to use VTK.
  15. INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
  16. # Add link directories needed to use VTK.
  17. LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})