-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 1.08 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
cmake_minimum_required(VERSION 3.25)
set(PATCH_VERSION "1" CACHE INTERNAL "Patch version")
set(PROJECT_VESRION 0.0.${PATCH_VERSION})
project(play_radio VERSION ${PROJECT_VESRION})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_VERBOSE_MAKEFILE ON)
add_compile_options(
-Wall
-Wextra
-Werror
-Wno-format-truncation
-Wnon-virtual-dtor
-Wno-stringop-overflow
-Wno-stringop-truncation
)
add_link_options(
-Wno-undefined
)
add_subdirectory(src)
add_subdirectory(tests)
set(CPACK_GENERATOR DEB)
#set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost1.58.0 (>= 1.58)")
set(CPACK_PACKAGE_VENDOR "Khromenok Roman")
set(CPACK_PACKAGE_DESCRIPTION "Запускает радио удаленно")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]")
install(FILES radio_list DESTINATION /etc/radio)
install(FILES play_radio.service DESTINATION /usr/lib/systemd/system/)
include(CPack)