2009-09-28 19:46:51 +04:00
#=============================================================================
# Copyright 2005-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
2010-08-07 04:48:47 +04:00
# (To distribute this file outside of CMake, substitute the full
2009-09-28 19:46:51 +04:00
# License text for the above reference.)
2005-09-08 01:05:01 +04: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}" )
2008-03-03 19:57:02 +03:00
STRING ( REGEX REPLACE "CMAKE_C_COMPILER"
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 19:17:04 +03: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 } " )
2008-03-03 19:57:02 +03:00
STRING ( REGEX REPLACE "CMAKE_C_COMPILER"
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 19:17:04 +03: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 } " )
2005-09-08 01:05:01 +04:00
ENDIF ( APPLE )
2005-11-28 22:19:57 +03:00
2008-03-03 19:57:02 +03:00
SET ( VTKFTGL_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/ftgl"
2006-12-12 19:17:04 +03:00
C A C H E I N T E R N A L " " )
2008-03-03 19:57:02 +03:00
SET ( VTKFREETYPE_BINARY_DIR "${VTK_BINARY_DIR}/Utilities/freetype"
2006-12-12 19:17:04 +03:00
C A C H E I N T E R N A L " " )
2008-03-03 19:57:02 +03:00
SET ( VTKFTGL_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/ftgl"
2006-12-12 19:17:04 +03:00
C A C H E I N T E R N A L " " )
2008-03-03 19:57:02 +03:00
SET ( VTKFREETYPE_SOURCE_DIR "${VTK_SOURCE_DIR}/Utilities/freetype"
2006-12-12 19:17:04 +03:00
C A C H E I N T E R N A L " " )
2005-11-28 22:19:57 +03:00
2008-03-03 19:57:02 +03:00
SET ( VTK_GLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/glext.h"
C A C H E F I L E P A T H
2006-03-13 21:11:50 +03: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 ) . " )
2008-03-03 19:57:02 +03:00
SET ( VTK_GLXEXT_FILE
2006-12-12 19:17:04 +03: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 21:11:50 +03: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 ) . " )
2008-03-03 19:57:02 +03:00
SET ( VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
2006-12-12 19:17:04 +03:00
C A C H E F I L E P A T H
2006-03-13 21:11:50 +03: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 23:29:46 +03:00
# work around an old bug in VTK
SET ( TIFF_RIGHT_VERSION 1 )
2006-12-12 19:17:04 +03:00
2006-12-12 21:59:30 +03:00
# for very old VTK (versions prior to 4.2)
2006-12-13 20:11:14 +03:00
MACRO ( SOURCE_FILES )
2006-12-12 21:59:30 +03: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." )
2006-12-13 20:11:14 +03:00
ENDMACRO ( SOURCE_FILES )