-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
56 lines (40 loc) · 1.6 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
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.6.0)
project(glacier-messages
VERSION 0.3
DESCRIPTION "The Glacier messages")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INSTALL_PREFIX /usr)
include(FeatureSummary)
include(GNUInstallDirs)
option(QML_DEBUG "Don't pack QML into binary for debug and develop" OFF)
set(QT_MIN_VERSION "6.0.0")
find_package(Qt6 COMPONENTS Gui Qml Quick DBus LinguistTools REQUIRED)
find_package(Glacier 1.0 COMPONENTS App REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(QOFONO qofono-qt6 REQUIRED IMPORTED_TARGET)
pkg_check_modules(NEMONOTIFICATIONS nemonotifications-qt6 REQUIRED IMPORTED_TARGET)
pkg_check_modules(COMMHISTORY commhistory-qt6 REQUIRED IMPORTED_TARGET)
add_subdirectory(src)
add_subdirectory(daemon)
# Translations
file(GLOB TS_FILES translations/*.ts)
qt6_add_translation(QM_FILES ${TS_FILES})
add_custom_target(translations DEPENDS ${QM_FILES})
add_dependencies(glacier-messages translations)
install(FILES ${QM_FILES}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-messages/translations)
install(FILES data/glacier-messages.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
install(FILES res/glacier-messages.png
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-messages)
file(GLOB SVG_FILES res/*.svg)
install(FILES ${SVG_FILES}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/glacier-messages/images)
install(FILES
data/org.nemomobile.qmlmessages.service
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/services)
install(FILES
data/glacier-messages.service
DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user/)