forked from frkd-dev/yuvit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCPackOptions.txt
22 lines (19 loc) · 992 Bytes
/
CPackOptions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(CPACK_GENERATOR DEB RPM)
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "YUV image and sequence console conversion tool")
set(CPACK_PACKAGE_DESCRIPTION_FILE ${PROJECT_SOURCE_DIR}/description.txt)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_PROCESSOR}")
set(CPACK_STRIP_FILES "ON")
# DEB package specific options
file(READ ${PROJECT_SOURCE_DIR}/description.txt DEB_DESCRIPTION)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${PROJECT_AUTHOR})
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${DEB_DESCRIPTION})
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libstdc++6 (>= 4.4.0), libfreeimage3 (>= 3.15.0)")
set(CPACK_DEBIAN_PACKAGE_SECTION "graphics")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${PROJECT_URL})
# RPM package specific options
set(CPACK_RPM_PACKAGE_LICENSE ${PROJECT_LICENSE})
set(CPACK_RPM_PACKAGE_URL ${PROJECT_URL})
set(CPACK_RPM_PACKAGE_REQUIRES "libstdc++, freeimage")
include(CPack)