blob: 8f503ce73488ccefec4a93c2169f34afd57698c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
diff -urN Cura-2.3.1.orig/CMakeLists.txt Cura-2.3.1/CMakeLists.txt
--- Cura-2.3.1.orig/CMakeLists.txt 2016-11-04 16:24:43.000000000 +0300
+++ Cura-2.3.1/CMakeLists.txt 2016-12-05 12:20:23.126904644 +0300
@@ -27,20 +27,31 @@
find_package(PythonInterp 3.4.0 REQUIRED)
+if(NOT PYTHON_SITE_PACKAGES_DIR)
+ if(APPLE OR WIN32)
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
+ CACHE STRING "Directory to install Python bindings to")
+ else()
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages
+ CACHE STRING "Directory to install Python bindings to")
+ endif()
+endif()
+
+
install(DIRECTORY resources
DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
install(DIRECTORY plugins
- DESTINATION lib/cura)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
if(NOT APPLE AND NOT WIN32)
install(FILES cura_app.py
DESTINATION ${CMAKE_INSTALL_BINDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
RENAME cura)
install(DIRECTORY cura
- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
+ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
FILES_MATCHING PATTERN *.py)
install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
+ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
install(FILES ${CMAKE_BINARY_DIR}/cura.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES cura.sharedmimeinfo
|