-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
50 lines (38 loc) · 1.5 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
cmake_minimum_required(VERSION 3.10.0)
project(asteroid-settings
VERSION 2.0.0
DESCRIPTION "Default settings app for AsteroidOS")
find_package(ECM REQUIRED NO_MODULE)
find_package(AsteroidApp REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
include(FindPkgConfig)
include(FeatureSummary)
include(GNUInstallDirs)
include(ECMFindQmlModule)
include(AsteroidCMakeSettings)
include(AsteroidTranslations)
find_package(Qt5 COMPONENTS Core Qml Quick DBus Multimedia REQUIRED)
find_package(Mce REQUIRED)
ecm_find_qmlmodule(Nemo.DBus 2.0)
ecm_find_qmlmodule(Nemo.Configuration 1.0)
ecm_find_qmlmodule(Qt.labs.folderlistmodel 2.1)
ecm_find_qmlmodule(org.nemomobile.systemsettings 1.0)
add_subdirectory(src)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/asteroid-settings.in
${CMAKE_BINARY_DIR}/asteroid-settings
@ONLY)
install(PROGRAMS ${CMAKE_BINARY_DIR}/asteroid-settings
DESTINATION ${CMAKE_INSTALL_BINDIR})
build_translations(i18n)
generate_desktop(${CMAKE_SOURCE_DIR} asteroid-settings)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(CPACK_GENERATOR "DEB")
string(TOLOWER "${CMAKE_PROJECT_NAME}" lcproject_name)
set(CPACK_DEBIAN_FILE_NAME "${lcproject_name}-${CMAKE_PROJECT_VERSION}.ipk")
set(CPACK_STRIP_FILES TRUE)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE armv7vehf-neon)
if (NOT CPACK_PACKAGE_CONTACT)
set(CPACK_PACKAGE_CONTACT [email protected])
message(WARNING "No package contact specified: using ${CPACK_PACKAGE_CONTACT}")
endif()
include(CPack)