TZIVI-254: IVI needs a newer version of cmake
[profile/ivi/cmake.git] / Modules / UseVTK40.cmake
1 #
2
3 #=============================================================================
4 # Copyright 2002-2009 Kitware, Inc.
5 #
6 # Distributed under the OSI-approved BSD License (the "License");
7 # see accompanying file Copyright.txt for details.
8 #
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.)
15
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
19 # to point here.
20
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}")
24
25 # Add include directories needed to use VTK.
26 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
27
28 # Add link directories needed to use VTK.
29 LINK_DIRECTORIES(${VTK_LIBRARY_DIRS})