# CMakeLists.txt: # Call with -DVERSION=[...] -DEXACT=[Y/N] -DPYTHON_NATIVE=[Y/N] CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(FINDPYTHON NONE) SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") IF(EXACT) SET(EXACT "EXACT") ELSE() SET(EXACT "") ENDIF() FIND_PACKAGE(Python ${VERSION} ${EXACT}) MESSAGE("PYTHON_EXECUTABLE: ${PYTHON_EXECUTABLE}") MESSAGE("PYTHON_LIBRARY: ${PYTHON_LIBRARY}") MESSAGE("PYTHON_INCLUDE_DIR: ${PYTHON_INCLUDE_DIR}") MESSAGE("PYTHON_FOUND: ${PYTHON_FOUND}")