forked from vle-forge/pyvle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeCPack.cmake
49 lines (40 loc) · 2.12 KB
/
CMakeCPack.cmake
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
IF (WIN32)
SET(CPACK_GENERATOR "ZIP")
SET(CPACK_SOURCE_GENERATOR "ZIP")
ENDIF (WIN32)
IF (UNIX)
SET(CPACK_GENERATOR "TGZ;DEB;RPM")
SET(CPACK_SOURCE_GENERATOR "ZIP;TGZ;TBZ2")
ENDIF (UNIX)
SET(CPACK_STRIP_FILES "1")
SET(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
SET(CPACK_PACKAGE_VENDOR "VLE Development Team")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Python Package Virtual Laboratory Environment")
SET(CPACK_PACKAGE_CONTACT "Gauthier Quesnel <[email protected]>")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
IF ("${PYVLE_EXTRA}" STREQUAL "")
SET(PYVLE_END "${PYVLE_PATCH}")
ELSE ("${PYVLE_EXTRA}" STREQUAL "")
SET(PYVLE_END "${PYVLE_PATCH}-${PYVLE_EXTRA}")
ENDIF ("${PYVLE_EXTRA}" STREQUAL "")
SET(CPACK_PACKAGE_VERSION_MAJOR "${PYVLE_MAJOR}")
SET(CPACK_PACKAGE_VERSION_MINOR "${PYVLE_MINOR}")
SET(CPACK_PACKAGE_VERSION_PATCH "${PYVLE_END}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PYVLE_NAME}")
SET(CPACK_SOURCE_IGNORE_FILES "\\\\.swp$;/\\\\.gitignore;/build/;/lib/;/\\\\.git/")
SET(CPACK_DEBIAN_PACKAGE_NAME ${PROJECT_NAME}-${PYVLE_MAJOR}.${PYVLE_MINOR})
SET(CPACK_DEBIAN_PACKAGE_VERSION ${PYVLE_MAJOR}.${PYVLE_MINOR}.${PYVLE_END})
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Gauthier Quesnel <[email protected]>")
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "VLE, a framework for multi-modeling, simulation and analysis of complex dynamical systems.")
SET(CPACK_DEBIAN_PACKAGE_SECTION "libs")
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
SET(CPACK_RPM_PACKAGE_SUMMARY "VLE, a framework for multi-modeling, simulation and analysis of complex dynamical systems.")
SET(CPACK_RPM_PACKAGE_NAME ${PROJECT_NAME}-${PYVLE_MAJOR}.${PYVLE_MINOR})
SET(CPACK_RPM_PACKAGE_VERSION ${PYVLE_MAJOR}.${PYVLE_MINOR}.${PYVLE_END})
SET(CPACK_RPM_PACKAGE_RELEASE "1")
SET(CPACK_RPM_PACKAGE_VENDOR "Gauthier Quesnel <[email protected]>")
SET(CPACK_RPM_PACKAGE_LICENSE "GNU General Public License (GPL)")
SET(CPACK_RPM_PACKAGE_DESCRIPTION "VLE, a framework for multi-modeling, simulation and analysis of complex dynamical systems.")
INCLUDE(CPack)
# vim:tw=0:ts=8:tw=0:sw=2:sts=2