2 SET(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}")
3 SET(CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}")
4 STRING( REGEX REPLACE "CMAKE_C_COMPILER"
5 CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_MODULE
6 "${CMAKE_CXX_CREATE_SHARED_MODULE}")
7 STRING( REGEX REPLACE "CMAKE_C_COMPILER"
8 CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_LIBRARY
9 "${CMAKE_CXX_CREATE_SHARED_LIBRARY}")
12 SET(VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
14 SET(VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
16 SET(VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
18 SET(VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
21 SET(VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
23 "Location of the OpenGL extensions header file (glext.h).")
25 "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glxext.h" CACHE FILEPATH
26 "Location of the GLX extensions header file (glxext.h).")
27 SET(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
29 "Location of the WGL extensions header file (wglext.h).")
31 # work around an old bug in VTK
32 SET(TIFF_RIGHT_VERSION 1)
34 # vtkRendering links to X11 with "-lXt ${X11_LIBRARIES}" because CMake
35 # 2.4 and below did not provide the X11_Xt_LIB variable. We need the
36 # linker search path compatiblity feature.
37 SET(CMAKE_LINK_OLD_PATHS 1)
39 # for very old VTK (versions prior to 4.2)
41 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.")
42 ENDMACRO(SOURCE_FILES)