1
0

FindPythonLibs.cmake 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # This module finds if Python is installed and determines where the
  3. # include files and libraries are. It also determines what the name of
  4. # the library is. This code sets the following variables:
  5. #
  6. # PYTHON_LIBRARY = the full path to the library found
  7. # PYTHON_INCLUDE_PATH = the path to where tcl.h can be found
  8. # PYTHON_DEBUG_LIBRARY = the full path to the debug library found
  9. #
  10. FIND_LIBRARY(PYTHON_DEBUG_LIBRARY python python21_d python20_d
  11. PATHS
  12. /usr/lib
  13. /usr/local/lib
  14. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/libs/Debug
  15. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs/Debug
  16. )
  17. FIND_LIBRARY(PYTHON_LIBRARY python python21 python20
  18. PATHS
  19. /usr/lib
  20. /usr/local/lib
  21. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/libs
  22. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/libs
  23. )
  24. FIND_PATH(PYTHON_INCLUDE_PATH Python.h
  25. /usr/include
  26. /usr/local/include
  27. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]/include
  28. [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\InstallPath]/include
  29. )