updates
This commit is contained in:
parent
7d09ca52f1
commit
7f5c61a570
@ -3,37 +3,15 @@
|
|||||||
#
|
#
|
||||||
# This module defines
|
# This module defines
|
||||||
#
|
#
|
||||||
# VTK_INSTALL_DIR - where is the installed version of VTK
|
# VTK_INSTALL_PATH - where is the installed version of VTK
|
||||||
# VTK_SOURCE_DIR - where is VTK source code
|
# VTK_BINARY_PATH - where is the binary tree (only defined if SOURCE_PATH is defined)
|
||||||
# VTK_BINARY_DIR - where is the binary tree (only defined if SOURCE_PATH is defined)
|
|
||||||
# USE_INSTALLED_VTK - sould an installed or source version of VTK be used
|
# USE_INSTALLED_VTK - sould an installed or source version of VTK be used
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Look for local source trees and builds of VTK
|
# Look for a binary tree
|
||||||
#
|
#
|
||||||
# look in the cmake list of recent source and bin dirs for this user
|
FIND_PATH(VTK_BINARY_PATH vtkConfigure.h
|
||||||
#
|
|
||||||
FIND_PATH(VTK_SOURCE_DIR Common/vtkObject.h
|
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource]
|
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource2]
|
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource3]
|
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereSource4]
|
|
||||||
../VTK
|
|
||||||
VTK
|
|
||||||
$ENV{HOME}/VTK
|
|
||||||
)
|
|
||||||
|
|
||||||
#
|
|
||||||
# If we found a source tree then set use_installed_vtk to 0
|
|
||||||
#
|
|
||||||
IF (VTK_SOURCE_DIR)
|
|
||||||
SET (USE_INSTALLED_VTK 0 CACHE BOOL "Is an installed (versus source) version of VTK used")
|
|
||||||
#
|
|
||||||
# Look for a binary tree
|
|
||||||
#
|
|
||||||
FIND_PATH(VTK_BINARY_DIR vtkConfigure.h
|
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild]
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild]
|
||||||
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild2]
|
[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;WhereBuild3]
|
||||||
@ -45,7 +23,13 @@ IF (VTK_SOURCE_DIR)
|
|||||||
$ENV{HOME}/VTKBIN
|
$ENV{HOME}/VTKBIN
|
||||||
$ENV{HOME}/vtkbin
|
$ENV{HOME}/vtkbin
|
||||||
)
|
)
|
||||||
ELSE (VTK_SOURCE_DIR)
|
|
||||||
|
#
|
||||||
|
# If we found a binary tree then set use_installed_vtk to 0
|
||||||
|
#
|
||||||
|
IF (VTK_BINARY_PATH)
|
||||||
|
SET (USE_INSTALLED_VTK 0 CACHE BOOL "Is an installed (versus source) version of VTK used")
|
||||||
|
ELSE (VTK_BINARY_PATH)
|
||||||
# look for the vtk header files in installed places
|
# look for the vtk header files in installed places
|
||||||
FIND_PATH(VTK_INSTALL_PATH include/vtk/vtkObject.h
|
FIND_PATH(VTK_INSTALL_PATH include/vtk/vtkObject.h
|
||||||
/usr/local
|
/usr/local
|
||||||
@ -57,7 +41,7 @@ ELSE (VTK_SOURCE_DIR)
|
|||||||
IF (VTK_INSTALL_PATH)
|
IF (VTK_INSTALL_PATH)
|
||||||
SET (USE_INSTALLED_VTK 1 CACHE BOOL "Is an installed (versus source) version of VTK used")
|
SET (USE_INSTALLED_VTK 1 CACHE BOOL "Is an installed (versus source) version of VTK used")
|
||||||
ENDIF (VTK_INSTALL_PATH)
|
ENDIF (VTK_INSTALL_PATH)
|
||||||
ENDIF (VTK_SOURCE_DIR)
|
ENDIF (VTK_BINARY_PATH)
|
||||||
|
|
||||||
IF (USE_INSTALLED_VTK)
|
IF (USE_INSTALLED_VTK)
|
||||||
# look for the vtk header files in installed places
|
# look for the vtk header files in installed places
|
||||||
|
Loading…
x
Reference in New Issue
Block a user