CMake/Modules/FindPythonLibs.cmake

36 lines
1.1 KiB
CMake
Raw Normal View History

2001-05-11 18:27:46 +04:00
#
# 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
#
2001-05-11 21:58:35 +04:00
FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
NAMES python python21_d python20_d
2001-05-11 18:27:46 +04:00
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
)
2001-05-11 21:58:35 +04:00
FIND_LIBRARY(PYTHON_LIBRARY
NAMES python python21 python20
2001-05-11 18:27:46 +04:00
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
)