UseVTK40.cmake 561 B

12345678910111213141516
  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. # Add compiler flags needed to use VTK.
  7. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
  8. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
  9. # Add include directories needed to use VTK.
  10. INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
  11. # Add link directories needed to use VTK.
  12. LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})