-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.src
69 lines (64 loc) · 2.83 KB
/
CMakeLists.src
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
66
67
68
69
cmake_minimum_required(VERSION 3.13)
project(hamclock-systemd VERSION HAMCLOCK_VERSION.11.1 HOMEPAGE_URL "https://github.com/pa28/hamclock-systemd")
include(GNUInstallDirs)
install(FILES resources/systemd/hamclock.service DESTINATION /etc/systemd/system
COMPONENT HAMCLOCK_SYSTEMD EXCLUDE_FROM_ALL)
install(FILES SourceCode/hamclock.png SourceCode/hamclock.desktop DESTINATION "${CMAKE_INSTALL_DATADIR}/hamclock"
COMPONENT HAMCLOCK EXCLUDE_FROM_ALL)
install(FILES resources/repository/ve3ysh.list DESTINATION /etc/apt/sources.list.d
COMPONENT VE3YSH_REPO EXCLUDE_FROM_ALL)
install(PROGRAMS
SourceCode/hamclock-fb0-800x480
SourceCode/hamclock-fb0-1600x960
SourceCode/hamclock-fb0-2400x1440
SourceCode/hamclock-fb0-3200x1920
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT HAMCLOCK_SYSTEMD EXCLUDE_FROM_ALL)
install(PROGRAMS
SourceCode/hamclock-800x480
SourceCode/hamclock-1600x960
SourceCode/hamclock-2400x1440
SourceCode/hamclock-3200x1920
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT HAMCLOCK EXCLUDE_FROM_ALL)
set(CPACK_DEB_COMPONENT_INSTALL 1)
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS 1)
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A capable visual clock for amatuer radio.")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
set(CPACK_PACKAGE_RELEASE ${PROJECT_VERSION_TWEAK})
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
set(CPACK_DEBIAN_HAMCLOCK_SYSTEMD_PACKAGE_NAME "${PROJECT_NAME}")
set(CPACK_DEBIAN_HAMCLOCK_PACKAGE_NAME "hamclock")
set(CPACK_DEBIAN_VE3YSH_REPO_PACKAGE_NAME "ve3ysh-repo")
set(CPACK_DEBIAN_PACKAGE_SECTION "hamradio")
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/pa28/hamclock-systemd")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Ricahrd Buckley <repo@vfrott.ca>")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
#set(CPACK_PACKAGE_HAMCLOCK_SYSTEMD_EXECUTABLES SourceCode/ESPHamClock/hamclock-fb0-800x480)
set(CPACK_PACKAGE_HAMCLOCK_EXECUTABLES SourceCode/ESPHamClock/hamclock-800x480)
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
/usr/local
/usr/local/bin
/usr/local/share
/usr/local/include
/usr/lib/systemd
/usr/lib/systemd/system
)
SET(CPACK_DEBIAN_HAMCLOCK_SYSTEMD_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/postinst")
SET(CPACK_DEBIAN_HAMCLOCK_PACKAGE_SHLIBDEPS)
SET(CPACK_DEBIAN_HAMCLOCK_SYSTEMD_PACKAGE_SHLIBDEPS)
include(CPack)
cpack_add_component(HAMCLOCK_SYSTEMD
DISPLAY_NAME "hamclock-systemd"
DESCRIPTION "A systemd way to autostart hamclock on /dev/fb0"
)
cpack_add_component(HAMCLOCK
DISPLAY_NAME "hamclock"
DESCRIPTION "Precompiled X11 hamclock binaries"
)
cpack_add_componenT(VE3YSH_REPO
DISPLAY_NAME "ve3ysh-repo"
DESCRIPTION "Aptitude package repository by VE3YSH")