-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
37 lines (27 loc) · 1007 Bytes
/
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
cmake_minimum_required(VERSION 3.6.0)
project(asteroid-btsyncd
VERSION 0.0.1
DESCRIPTION "Bluetooth Low Energy synchronization daemon for AsteroidOS")
find_package(ECM REQUIRED NO_MODULE)
find_package(AsteroidApp REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH})
include(FeatureSummary)
include(GNUInstallDirs)
include(ECMFindQmlModule)
include(AsteroidCMakeSettings)
include(AsteroidTranslations)
find_package(Qt5 COMPONENTS DBus REQUIRED)
find_package(Timed REQUIRED)
find_package(QtMpris REQUIRED)
find_package(SystemSettings REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GIOMM giomm-2.4 REQUIRED IMPORTED_TARGET)
set_property(GLOBAL APPEND PROPERTY _CMAKE_giomm-2.4_TYPE REQUIRED)
if(GIOMM_FOUND)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND giomm-2.4)
else()
set_property(GLOBAL APPEND PROPERTY PACKAGES_NOT_FOUND giomm-2.4)
endif()
add_subdirectory(src)
build_translations(i18n)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)