summaryrefslogtreecommitdiffstats
path: root/Modules/FindITK.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-26 22:21:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-26 22:21:53 (GMT)
commit0fb47ad240d3a3a0cb2ff12c5c34aef27095a041 (patch)
treee011f138e3eae993cb14146ed6c605c61648ee0a /Modules/FindITK.cmake
parentd9b7df43ce24f08985728fbca6c68688a001c586 (diff)
downloadCMake-0fb47ad240d3a3a0cb2ff12c5c34aef27095a041.zip
CMake-0fb47ad240d3a3a0cb2ff12c5c34aef27095a041.tar.gz
CMake-0fb47ad240d3a3a0cb2ff12c5c34aef27095a041.tar.bz2
*** empty log message ***
Diffstat (limited to 'Modules/FindITK.cmake')
-rw-r--r--Modules/FindITK.cmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/Modules/FindITK.cmake b/Modules/FindITK.cmake
new file mode 100644
index 0000000..a74664a
--- /dev/null
+++ b/Modules/FindITK.cmake
@@ -0,0 +1,43 @@
+#
+# Find the native ITK includes and library
+#
+# This module defines
+#
+# ITK_BINARY_PATH - where is the binary tree (only defined if SOURCE_PATH is defined)
+# USE_ITK_FILE - the full path and location of the UseITK.cmake file
+#
+
+#
+# Look for a binary tree
+#
+FIND_PATH(ITK_BINARY_PATH UseITK.cmake
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild1]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild2]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild3]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild4]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild5]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild6]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild7]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild8]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild9]
+ [HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild10]
+ ../ITKBIN
+ ../itkbin
+ ../Insight-vc
+ ../InsightBin
+ ITKBIN
+ itkbin
+ $ENV{HOME}/ITKBIN
+ $ENV{HOME}/Insight
+ $ENV{HOME}/InsightBin
+ $ENV{HOME}/itkbin
+ )
+
+
+
+IF (ITK_BINARY_PATH)
+ SET (USE_ITK_FILE ${ITK_BINARY_PATH}/UseITK.cmake)
+ENDIF (ITK_BINARY_PATH)
+
+
+