1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
4 # Not needed for "modern" VTK.
5 if (EXISTS "${VTK_SOURCE_DIR}/CMake/vtkModule.cmake")
10 set(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}")
11 set(CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}")
12 string( REGEX REPLACE "CMAKE_C_COMPILER"
13 CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_MODULE
14 "${CMAKE_CXX_CREATE_SHARED_MODULE}")
15 string( REGEX REPLACE "CMAKE_C_COMPILER"
16 CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_LIBRARY
17 "${CMAKE_CXX_CREATE_SHARED_LIBRARY}")
20 set(VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
22 set(VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
24 set(VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
26 set(VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
29 set(VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
31 "Location of the OpenGL extensions header file (glext.h).")
33 "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glxext.h" CACHE FILEPATH
34 "Location of the GLX extensions header file (glxext.h).")
35 set(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
37 "Location of the WGL extensions header file (wglext.h).")
39 # work around an old bug in VTK
40 set(TIFF_RIGHT_VERSION 1)
42 # for very old VTK (versions prior to 4.2)
44 message (FATAL_ERROR "You are trying to build a very old version of VTK (prior to VTK 4.2). To do this you need to use CMake 2.0 as it was the last version of CMake to support VTK 4.0.")