forked from ebruck/indicator-doom-cpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (30 loc) · 1.84 KB
/
CMakeLists.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
PROJECT( indicator-doom-cpu C )
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
SET( APP_VER_MAJOR 1 )
SET( APP_VER_MINOR 0 )
SET( APP_VER_PATCH 1 )
SET( APP_VERSION ${APP_VER_MAJOR}.${APP_VER_MINOR}.${APP_VER_PATCH} )
MESSAGE( "Building version: ${APP_VERSION}..." )
SET( CPACK_PACKAGE_VENDOR "Edward G. Bruck")
SET( CPACK_PACKAGE_CONTACT "[email protected]")
SET( CPACK_PACKAGE_DESCRIPTION "Ubuntu CPU indicator that displays load using Flynn's dying face from the video game DOOM.")
SET( CPACK_PACKAGE_DESCRIPTION_SUMMARY "DOOM CPU Indicator for Ubuntu")
SET( CPACK_PACKAGE_NAME "indicator-doom-cpu")
SET( CPACK_PACKAGE_VERSION ${APP_VERSION})
SET( CPACK_PACKAGE_VERSION_MAJOR ${APP_VER_MAJOR})
SET( CPACK_PACKAGE_VERSION_MINOR ${APP_VER_MINOR})
SET( CPACK_PACKAGE_VERSION_PATCH ${APP_VER_PATCH})
SET( CPACK_DEBIAN_PACKAGE_SECTION "python")
SET( CPACK_SYSTEM_NAME "noarch" )
SET( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all" )
SET( CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
SET( CPACK_DEBIAN_PACKAGE_MAINTAINER "Edward G. Bruck <[email protected]>")
SET( CPACK_DEBIAN_PACKAGE_DEPENDS "python, python-gi, gir1.2-appindicator3-0.1")
SET( CPACK_GENERATOR "DEB")
INCLUDE( CPack )
INSTALL( PROGRAMS ../indicator-doom-cpu DESTINATION /usr/share/indicator-doom-cpu)
INSTALL( DIRECTORY ../icons DESTINATION /usr/share/indicator-doom-cpu)
INSTALL( FILES ../debian/indicator-doom-cpu.desktop DESTINATION /usr/share/applications/)
INSTALL( FILES ../debian/indicator-doom-cpu.desktop DESTINATION /etc/xdg/autostart/)
INSTALL( FILES ../debian/copyright DESTINATION /usr/share/doc/indicator-doom-cpu)
INSTALL( FILES ../debian/changelog DESTINATION /usr/share/doc/indicator-doom-cpu)