summaryrefslogtreecommitdiffstats
path: root/Modules/UseVTKBuildSettings40.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-05 15:47:18 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-05 15:47:18 (GMT)
commit14771cf5f6a237c0f056aa7fbb881ec4c4d0a1ae (patch)
tree8848460080fe403fba9048f91a4385bf385a8ca9 /Modules/UseVTKBuildSettings40.cmake
parentf3eca1ef6b6d7ff43b63d0f9f49c96e781fa9c37 (diff)
downloadCMake-14771cf5f6a237c0f056aa7fbb881ec4c4d0a1ae.zip
CMake-14771cf5f6a237c0f056aa7fbb881ec4c4d0a1ae.tar.gz
CMake-14771cf5f6a237c0f056aa7fbb881ec4c4d0a1ae.tar.bz2
ENH: Added support for finding/using VTK 4.0 without using its UseVTK.cmake file that does a LOAD_CACHE.
Diffstat (limited to 'Modules/UseVTKBuildSettings40.cmake')
-rw-r--r--Modules/UseVTKBuildSettings40.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/Modules/UseVTKBuildSettings40.cmake b/Modules/UseVTKBuildSettings40.cmake
new file mode 100644
index 0000000..c10ce01
--- /dev/null
+++ b/Modules/UseVTKBuildSettings40.cmake
@@ -0,0 +1,23 @@
+# Implementation detail for FindVTK.cmake to let it provide a
+# VTK_BUILD_SETTINGS_FILE for VTK 4.0.
+
+SET(CMAKE_BUILD_SETTING_CMAKE_MAJOR_VERSION "${VTK40_CMAKE_MAJOR_VERSION}")
+SET(CMAKE_BUILD_SETTING_CMAKE_MINOR_VERSION "${VTK40_CMAKE_MINOR_VERSION}")
+SET(CMAKE_BUILD_SETTING_PROJECT_NAME "VTK")
+
+SET(CMAKE_BUILD_SETTING_C_COMPILER "${VTK40_CMAKE_C_COMPILER}")
+SET(CMAKE_BUILD_SETTING_C_FLAGS "${VTK40_CMAKE_C_FLAGS}")
+SET(CMAKE_BUILD_SETTING_C_FLAGS_DEBUG "${VTK40_CMAKE_C_FLAGS_DEBUG}")
+SET(CMAKE_BUILD_SETTING_C_FLAGS_RELEASE "${VTK40_CMAKE_C_FLAGS_RELEASE}")
+SET(CMAKE_BUILD_SETTING_C_FLAGS_MINSIZEREL "${VTK40_CMAKE_C_FLAGS_MINSIZEREL}")
+SET(CMAKE_BUILD_SETTING_C_FLAGS_RELWITHDEBINFO "${VTK40_CMAKE_C_FLAGS_RELWITHDEBINFO}")
+
+SET(CMAKE_BUILD_SETTING_CXX_COMPILER "${VTK40_CMAKE_CXX_COMPILER}")
+SET(CMAKE_BUILD_SETTING_CXX_FLAGS "${VTK40_CMAKE_CXX_FLAGS}")
+SET(CMAKE_BUILD_SETTING_CXX_FLAGS_DEBUG "${VTK40_CMAKE_CXX_FLAGS_DEBUG}")
+SET(CMAKE_BUILD_SETTING_CXX_FLAGS_RELEASE "${VTK40_CMAKE_CXX_FLAGS_RELEASE}")
+SET(CMAKE_BUILD_SETTING_CXX_FLAGS_MINSIZEREL "${VTK40_CMAKE_CXX_FLAGS_MINSIZEREL}")
+SET(CMAKE_BUILD_SETTING_CXX_FLAGS_RELWITHDEBINFO "${VTK40_CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
+
+SET(CMAKE_BUILD_SETTING_BUILD_TYPE "${VTK40_CMAKE_BUILD_TYPE}")
+SET(CMAKE_BUILD_SETTING_BUILD_TOOL "${VTK40_CMAKE_BUILD_TOOL}")