-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalimeroCPack.txt
65 lines (52 loc) · 2.87 KB
/
CalimeroCPack.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CALIMERO - A model independent and generalised tool for autocalibration")
SET(CPACK_PACKAGE_NAME "calimero-swig")
SET(CPACK_PACKAGE_VENDOR "University of Innsbruck")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "11")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
IF(UNIX AND NOT WIN32)
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/_pycalimero.so" DESTINATION bin)
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/pycalimero.py" DESTINATION bin)
SET(CPACK_GENERATOR "STGZ;DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Michael Mair <[email protected]>")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-core,
libqt4-gui,
libqt4-xml,
libqt4-svg,
libqt4-sql-sqlite,
libqt4-sql-sqlite2,
python2.7,
python-scipy,
python-numpy,
python-qt4")
ENDIF()
IF(WIN32 AND NOT UNIX)
INCLUDE (InstallRequiredSystemLibraries)
SET(CPACK_GENERATOR "NSIS")
SET(CPACK_NSIS_DISPLAY_NAME "Calimero")
SET(CPACK_NSIS_CONTACT "[email protected]")
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/_pycalimero.pyd" DESTINATION bin)
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/pycalimero.py" DESTINATION bin)
INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/qtconf/qt.conf" DESTINATION bin)
INSTALL(FILES ${QT_BINARY_DIR}/../plugins/sqldrivers/qsqlite4.dll DESTINATION bin/plugins/sqldrivers)
FILE(GLOB DLLS
${QT_BINARY_DIR}/QtCore4.dll
${QT_BINARY_DIR}/QtGui4.dll
${QT_BINARY_DIR}/QtXml4.dll
${QT_BINARY_DIR}/QtSvg4.dll
${QT_BINARY_DIR}/QtSql4.dll)
INSTALL(FILES ${DLLS} DESTINATION bin)
INSTALL(FILES ${PYDFILES} DESTINATION calimero)
INSTALL(FILES ${MANIFEST} DESTINATION bin)
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKCU \\\"Software\\\\IUT\\\\Calimero\\\" pythonhome \\\"$INSTDIR\\\\bin\\\\DLLs\\\\,$INSTDIR\\\\bin\\\\lib\\\\,$INSTDIR\\\\bin\\\\lib\\\\plat-win\\\\,$INSTDIR\\\\bin\\\\lib\\\\lib-tk\\\\,$INSTDIR\\\\bin\\\\lib\\\\site-packages,$INSTDIR\\\\bin\\\\\\\"
WriteRegStr HKCU \\\"Software\\\\IUT\\\\Calimero\\\" calimerohome \\\"$INSTDIR\\\\share\\\\calimero\\\\libs\\\\,$INSTDIR\\\\share\\\\calimero\\\\scripts\\\\site-packages\\\\,$INSTDIR\\\\share\\\\calimero\\\\scripts\\\\\\\"
CopyFiles \\\"$INSTDIR\\\\bin\\\\DLLs\\\\sqlite3.dll\\\" \\\"$INSTDIR\\\\bin\\\\sqlite3.dll\\\"
ClearErrors
")
SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
DeleteRegKey HKCU \\\"Software\\\\IUT\\\\Calimero\\\"
")
ENDIF()
SET(CPACK_PACKAGE_EXECUTABLES "calimero;Calimero")
INCLUDE(CPack)