You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mayeul d'Avezac edited this page May 16, 2014
·
3 revisions
CMake can be used to create python packages. However, it is not always straightforward to figure out where to install the built packages and attendant files.
include(PythonInstall)
install_python(
... # Same arguments as CMake's installDESTINATION package/subpackage
)
If the DESTINATION argument is not absolute, then its root is given by PYTHON_PKG_DIR, rather than CMAKE_INSTALL_PREFIX. By default, PYTHON_PKG_DIR points to the directory given by running in python: