UseVTK40.cmake 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #
  2. #=============================================================================
  3. # Copyright 2002-2009 Kitware, Inc.
  4. #
  5. # Distributed under the OSI-approved BSD License (the "License");
  6. # see accompanying file Copyright.txt for details.
  7. #
  8. # This software is distributed WITHOUT ANY WARRANTY; without even the
  9. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. # See the License for more information.
  11. #=============================================================================
  12. # (To distributed this file outside of CMake, substitute the full
  13. # License text for the above reference.)
  14. # This is an implementation detail for using VTK 4.0 with the
  15. # FindVTK.cmake module. Do not include directly by name. This should
  16. # be included only when FindVTK.cmake sets the VTK_USE_FILE variable
  17. # to point here.
  18. # Add compiler flags needed to use VTK.
  19. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VTK_REQUIRED_C_FLAGS}")
  20. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")
  21. # Add include directories needed to use VTK.
  22. INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
  23. # Add link directories needed to use VTK.
  24. LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})