Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2017-09-15 17:05:10 +0300
committerGhostkeeper <rubend@tutanota.com>2017-09-15 17:05:22 +0300
commite8691d29a7f45bd73dd22e0a8b3161fde7a1795d (patch)
tree309da67a74aa3c3b195a4efc8f1d47f355d6a339 /CMakeLists.txt
parentfa266969eb034a5e6a5a4895658540faa8de5948 (diff)
Install CuraVersion.py also to site-packages on non-Debian
Similar to the rest of Cura. Contributes to issue CURA-3368.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36c4a1b1ce..1c372ffa55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,13 +49,15 @@ if(NOT APPLE AND NOT WIN32)
install(DIRECTORY cura
DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+ DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
else()
install(DIRECTORY cura
DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
FILES_MATCHING PATTERN *.py)
+ install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
+ DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura)
endif()
- install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES ${CMAKE_SOURCE_DIR}/resources/images/cura-icon.png