-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakePackage.txt
45 lines (38 loc) · 1.84 KB
/
CMakePackage.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
set(CPACK_PACKAGE_NAME "Faup")
set(CPACK_PACKAGE_RELEASE 1)
set(CPACK_PACKAGE_CONTACT "Sebastien Tricaud")
set(CPACK_PACKAGE_VENDOR "Sebastien Tricaud")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Faup - Finally An Url Parser!")
set(CPACK_PACKAGE_VERSION "${FAUP_VERSION_MAJOR}.${FAUP_VERSION_MINOR}.0")
set(CPACK_PACKAGE_VERSION_MAJOR "${FAUP_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${FAUP_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "0")
#set(CPACK_PACKAGE_INSTALL_DIRECTORY "Faup")
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
set(CPACK_RESOURCE_FILE_LICENSE "${faup-project_SOURCE_DIR}/src/LICENSE.txt")
set(CPACK_RESOURCE_FILE_README "${faup-project_SOURCE_DIR}/src/README.txt")
set(CPACK_SET_DESTDIR ON)
if(${LINUX_DIST} MATCHES "debian")
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Sebastien Tricaud")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
set(CPACK_SET_DESTDIR OFF)
if(${LUA_FOUND})
set(CPACK_DEBIAN_PACKAGE_DEPENDS "liblua5.1-0")
endif()
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;" )
endif()
if(${LINUX_DIST} MATCHES "redhat")
# set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
# set(CPACK_PACKAGE_RELOCATABLE TRUE)
set(CPACK_GENERATOR "RPM")
set(CPACK_SET_DESTDIR OFF)
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION /usr/share/man /usr/share/man/man1 /usr/local /usr/local/bin /usr/local/lib /usr/local/include /usr/local/lib64 /usr/local/share /usr/local/share/man /usr/local/share/man/man1)
if(${LUA_FOUND})
set(CPACK_RPM_PACKAGE_REQUIRES "lua >= 5.1.0")
endif()
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst")
endif()
set(CPACK_COMPONENTS_ALL Applications Libraries Headers)
# This must always be last!
include(CPack)