2016-09-27 19:01:08 +00:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2009-09-28 15:46:51 +00:00
2012-08-13 17:47:32 +00:00
if ( APPLE )
set ( CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}" )
set ( CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}" )
string ( REGEX REPLACE "CMAKE_C_COMPILER"
2008-03-03 16:57:02 +00:00
C M A K E _ C X X _ C O M P I L E R C M A K E _ C X X _ C R E A T E _ S H A R E D _ M O D U L E
2006-12-12 16:17:04 +00:00
" $ { C M A K E _ C X X _ C R E A T E _ S H A R E D _ M O D U L E } " )
2012-08-13 17:47:32 +00:00
string ( REGEX REPLACE "CMAKE_C_COMPILER"
2008-03-03 16:57:02 +00:00
C M A K E _ C X X _ C O M P I L E R C M A K E _ C X X _ C R E A T E _ S H A R E D _ L I B R A R Y
2006-12-12 16:17:04 +00:00
" $ { C M A K E _ C X X _ C R E A T E _ S H A R E D _ L I B R A R Y } " )
2012-08-13 17:50:14 +00:00
endif ( )
2005-11-28 19:19:57 +00:00
2012-08-13 17:47:32 +00:00
set ( VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
2006-12-12 16:17:04 +00:00
C A C H E I N T E R N A L " " )
2012-08-13 17:47:32 +00:00
set ( VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
2006-12-12 16:17:04 +00:00
C A C H E I N T E R N A L " " )
2012-08-13 17:47:32 +00:00
set ( VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
2006-12-12 16:17:04 +00:00
C A C H E I N T E R N A L " " )
2012-08-13 17:47:32 +00:00
set ( VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
2006-12-12 16:17:04 +00:00
C A C H E I N T E R N A L " " )
2005-11-28 19:19:57 +00:00
2012-08-13 17:47:32 +00:00
set ( VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
2008-03-03 16:57:02 +00:00
C A C H E F I L E P A T H
2006-03-13 18:11:50 +00:00
" L o c a t i o n o f t h e O p e n G L e x t e n s i o n s h e a d e r file ( glext.h ) . " )
2012-08-13 17:47:32 +00:00
set ( VTK_GLXEXT_FILE
2006-12-12 16:17:04 +00:00
" $ { V T K _ S O U R C E _ D I R } / U t i l i t i e s / P a r s e O G L E x t / h e a d e r s / g l x e x t . h " C A C H E F I L E P A T H
2006-03-13 18:11:50 +00:00
" L o c a t i o n o f t h e G L X e x t e n s i o n s h e a d e r file ( glxext.h ) . " )
2012-08-13 17:47:32 +00:00
set ( VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
2006-12-12 16:17:04 +00:00
C A C H E F I L E P A T H
2006-03-13 18:11:50 +00:00
" L o c a t i o n o f t h e W G L e x t e n s i o n s h e a d e r file ( wglext.h ) . " )
2006-11-16 20:29:46 +00:00
# work around an old bug in VTK
2012-08-13 17:47:32 +00:00
set ( TIFF_RIGHT_VERSION 1 )
2006-12-12 16:17:04 +00:00
2006-12-12 18:59:30 +00:00
# for very old VTK (versions prior to 4.2)
2012-08-13 17:47:32 +00:00
macro ( SOURCE_FILES )
2006-12-12 18:59:30 +00:00
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." )
2012-08-13 17:50:14 +00:00
endmacro ( )
2006-12-13 17:11:14 +00:00