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