# #Python script interpreter # if (WIN32) #Build from sources and install where find_package(python) will find it. #We take care to use a Python release that will build with as many versions of #Visual Studio as possible. ExternalProject_Add ( python2 PREFIX ${CMAKE_INSTALL_PREFIX}/python2 SVN_REPOSITORY http://github.com/python-cmake-buildsystem/python-cmake-buildsystem/trunk UPDATE_COMMAND "" CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= -DPYTHON_VERSION=2.7.8 -DCMAKE_BUILD_TYPE=Release ) endif (WIN32) if (UNIX) #Rely on manual installation via the package manager #You can then invoke perl as /usr/bin/python2 #sudo apt-get install python2 ExternalProject_Add ( python2 PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 DOWNLOAD_COMMAND "" UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND /usr/bin/python2 --version INSTALL_COMMAND "" ) endif (UNIX)