forked from jgilje/reveller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (34 loc) · 1.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
cmake_policy(SET CMP0048 NEW)
PROJECT(reveller VERSION 0.1.1 LANGUAGES C CXX Go)
include(cmake/golang.cmake)
ADD_SUBDIRECTORY(sidplayer)
ADD_SUBDIRECTORY(sidplayer-web-backend)
install(TARGETS sidplayer)
# sidplayer-web-backend already have an install def.
install(DIRECTORY sidplayer-web-frontend/ DESTINATION www/)
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/reveller")
set(CPACK_PACKAGE_VENDOR "FluxXx")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${CMAKE_CURRENT_SOURCE_DIR}/debian/prerm"
"${CMAKE_CURRENT_SOURCE_DIR}/debian/postinst"
"${CMAKE_CURRENT_SOURCE_DIR}/debian/postrm"
)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/sidplayer-web-backend/systemd/reveller.service
DESTINATION /usr/local/lib/systemd/system
)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/sidplayer-web-backend/systemd/reveller
DESTINATION /etc/modules-load.d
)
INSTALL(FILES
${CMAKE_CURRENT_SOURCE_DIR}/sidplayer/kernel-driver/rpi/Makefile
${CMAKE_CURRENT_SOURCE_DIR}/sidplayer/kernel-driver/rpi/reveller.c
${CMAKE_CURRENT_SOURCE_DIR}/sidplayer/kernel-driver/rpi/dkms.conf
DESTINATION /usr/src/reveller-0.1.0
)
include(CPack)