forked from AsteroidOS/asteroid-music
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (22 loc) · 809 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
cmake_minimum_required(VERSION 3.6.0)
project(asteroid-music
VERSION 0.0.1
DESCRIPTION "Default music app 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)
ecm_find_qmlmodule(org.nemomobile.mpris 1.0)
add_subdirectory(src)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/asteroid-music.in
${CMAKE_BINARY_DIR}/asteroid-music
@ONLY)
install(PROGRAMS ${CMAKE_BINARY_DIR}/asteroid-music
DESTINATION ${CMAKE_INSTALL_BINDIR})
build_translations(i18n)
generate_desktop(${CMAKE_SOURCE_DIR} asteroid-music)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)