VTKCompatibility.cmake 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. if(APPLE)
  4. set(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}")
  5. set(CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}")
  6. string( REGEX REPLACE "CMAKE_C_COMPILER"
  7. CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_MODULE
  8. "${CMAKE_CXX_CREATE_SHARED_MODULE}")
  9. string( REGEX REPLACE "CMAKE_C_COMPILER"
  10. CMAKE_CXX_COMPILER CMAKE_CXX_CREATE_SHARED_LIBRARY
  11. "${CMAKE_CXX_CREATE_SHARED_LIBRARY}")
  12. endif()
  13. set(VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
  14. CACHE INTERNAL "")
  15. set(VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
  16. CACHE INTERNAL "")
  17. set(VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
  18. CACHE INTERNAL "")
  19. set(VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
  20. CACHE INTERNAL "")
  21. set(VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
  22. CACHE FILEPATH
  23. "Location of the OpenGL extensions header file (glext.h).")
  24. set(VTK_GLXEXT_FILE
  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"
  28. CACHE FILEPATH
  29. "Location of the WGL extensions header file (wglext.h).")
  30. # work around an old bug in VTK
  31. set(TIFF_RIGHT_VERSION 1)
  32. # for very old VTK (versions prior to 4.2)
  33. macro(SOURCE_FILES)
  34. 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.")
  35. endmacro()