diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:27:46 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-05-11 14:27:46 (GMT) |
commit | 4139f15de65ec1d1670cceb95b4c22b52f5448c3 (patch) | |
tree | 87332c1cbb7e5e184392774f829b4c2ea1916299 /Modules/FindPythonLibs.cmake | |
parent | a53f300bc01cc1c21f27c8db8a14f0ecc1af8e2a (diff) | |
download | CMake-4139f15de65ec1d1670cceb95b4c22b52f5448c3.zip CMake-4139f15de65ec1d1670cceb95b4c22b52f5448c3.tar.gz CMake-4139f15de65ec1d1670cceb95b4c22b52f5448c3.tar.bz2 |
minor fixes and new python module
Diffstat (limited to 'Modules/FindPythonLibs.cmake')
-rw-r--r-- | Modules/FindPythonLibs.cmake | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake new file mode 100644 index 0000000..13cbea5 --- /dev/null +++ b/Modules/FindPythonLibs.cmake @@ -0,0 +1,33 @@ +# +# This module finds if Python is installed and determines where the +# include files and libraries are. It also determines what the name of +# the library is. This code sets the following variables: +# +# PYTHON_LIBRARY = the full path to the library found +# PYTHON_INCLUDE_PATH = the path to where tcl.h can be found +# PYTHON_DEBUG_LIBRARY = the full path to the debug library found +# + +FIND_LIBRARY(PYTHON_DEBUG_LIBRARY python python21_d python20_d + PATHS + /usr/lib + /usr/local/lib + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/libs/Debug + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs/Debug +) + +FIND_LIBRARY(PYTHON_LIBRARY python python21 python20 + PATHS + /usr/lib + /usr/local/lib + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/libs + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs +) + +FIND_PATH(PYTHON_INCLUDE_PATH Python.h + /usr/include + /usr/local/include + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/include + [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/include +) + |