add package using cpack and install properly

This commit is contained in:
Christophe Prud'homme
2021-02-09 00:17:27 +00:00
parent 93564d1de7
commit 16ad45440f
2 changed files with 39 additions and 2 deletions
+2 -1
View File
@@ -79,7 +79,8 @@ IF(PYTHONINTERP_FOUND AND NOT "${PYTHON_EXECUTABLE}" STREQUAL "")
OUTPUT_VARIABLE python_package_dir
)
ENDIF()
set(CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/install/lib )
set(python_package_dir ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/)
IF("${python_package_dir}" STREQUAL "")
MESSAGE(WARNING "Unable to locate Python site-package directory, unable to install the Python wrapper")
ELSE()