@@ -0,0 +1,60 | |||||
|
1 | # | |||
|
2 | # Generate the source package of SciqLop. | |||
|
3 | # | |||
|
4 | ||||
|
5 | install(DIRECTORY | |||
|
6 | ${EXECUTABLE_OUTPUT_PATH} | |||
|
7 | DESTINATION "." | |||
|
8 | USE_SOURCE_PERMISSIONS | |||
|
9 | COMPONENT CORE | |||
|
10 | PATTERN "*.a" EXCLUDE | |||
|
11 | ) | |||
|
12 | ||||
|
13 | set(EXECUTABLEDOTEXTENSION) | |||
|
14 | if(WIN32) | |||
|
15 | set(EXECUTABLEDOTEXTENSION ".exe") | |||
|
16 | endif(WIN32) | |||
|
17 | set (SCIQLOP_EXE_LOCATION ${EXECUTABLE_OUTPUT_PATH}/${EXECUTABLE_NAME}${EXECUTABLEDOTEXTENSION}) | |||
|
18 | ||||
|
19 | if(WIN32) | |||
|
20 | include ("cmake/sciqlop_package_qt.cmake") | |||
|
21 | endif(WIN32) | |||
|
22 | ||||
|
23 | ||||
|
24 | SET (CPACK_PACKAGE_VENDOR "CNRS") | |||
|
25 | SET (CPACK_PACKAGE_VERSION_MAJOR "${SCIQLOP_VERSION_MAJOR}") | |||
|
26 | SET (CPACK_PACKAGE_VERSION_MINOR "${SCIQLOP_VERSION_MINOR}") | |||
|
27 | SET (CPACK_PACKAGE_VERSION_PATCH "${SCIQLOP_VERSION_PATCH}${SCIQLOP_VERSION_SUFFIX}") | |||
|
28 | SET (CPACK_PACKAGE_VERSION "${SCIQLOP_VERSION}") | |||
|
29 | SET (CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE) | |||
|
30 | SET (CPACK_PACKAGE_CONTACT "nicolas.aunai@lpp.polytechnique.fr") | |||
|
31 | SET(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README.md) | |||
|
32 | # SET(CPACK_RESOURCE_FILE_WELCOME ${CMAKE_CURRENT_SOURCE_DIR}/WARN.txt) | |||
|
33 | SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE) | |||
|
34 | # SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PROJECT_NAME}-${PROJECT_VERSION}) | |||
|
35 | SET(FULLBUILD ON) | |||
|
36 | ||||
|
37 | SET(CPACK_PACKAGE_NAME ${PROJECT_NAME}) | |||
|
38 | SET(CPACK_GENERATOR "NSIS") | |||
|
39 | SET(CPACK_MONOLITHIC_INSTALL 1) | |||
|
40 | #SET(CPACK_COMPONENTS_ALL sciqlop qt) | |||
|
41 | SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Setup") | |||
|
42 | SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_NAME}) | |||
|
43 | ||||
|
44 | set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) | |||
|
45 | message("exepath" ${CPACK_PACKAGE_INSTALL_DIRECTORY}) | |||
|
46 | ||||
|
47 | if (WIN32) | |||
|
48 | SET(CPACK_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | |||
|
49 | SET(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON) | |||
|
50 | SET(CPACK_NSIS_COMPONENT_INSTALL ON) | |||
|
51 | SET(CPACK_SYSTEM_NAME "MinGW32") | |||
|
52 | SET(CPACK_PACKAGING_INSTALL_PREFIX "") | |||
|
53 | #SET(CPACK_GENERATOR "NSIS") | |||
|
54 | SET(CPACK_NSIS_DISPLAY_NAME ${PROJECT_NAME}) | |||
|
55 | SET(CPACK_NSIS_MUI_FINISHPAGE_RUN ${SCIQLOP_EXECUTABLE_NAME}) | |||
|
56 | SET(CPACK_NSIS_MUI_ICON ${SCIQLOP_EXECUTABLE_ICON_LOCATION}) | |||
|
57 | SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\${SCIQLOP_EXECUTABLE_NAME}.exe") | |||
|
58 | endif (WIN32) | |||
|
59 | ||||
|
60 | INCLUDE(CPack) |
General Comments 0
You need to be logged in to leave comments.
Login now