-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
45 lines (35 loc) · 1.33 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
cmake_minimum_required(VERSION 3.16)
project(exphone LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(GNUInstallDirs)
include(FeatureSummary)
find_package(Qt5 COMPONENTS Core Gui Quick Sql DBus LinguistTools REQUIRED)
#set(WATCHFISH_FEATURES "notificationmonitor;walltime;music;calendar;voicecall;volume")
set(WATCHFISH_FEATURES "voicecall")
# FIXME platform files install path PREFIX ...
#
if(NOT DEFINED FLAVOR)
message(FATAL_ERROR "Please specify the platform using -DFLAVOR=platform as a CMake option. Supported platforms: kirigami, silica, qtcontrols, uuitk.")
elseif(FLAVOR STREQUAL "silica")
add_definitions(-DMER_EDITION_SAILFISH)
elseif(FLAVOR STREQUAL "kirigami")
add_definitions(-Dflavor_kirigami)
elseif(FLAVOR STREQUAL "qtcontrols")
add_definitions(-Dflavor_qtcontrols)
elseif(FLAVOR STREQUAL "uuitk")
add_definitions(-DUUITK_EDITION)
add_subdirectory(click)
else()
message(FATAL_ERROR "Unsupported platform '${FLAVOR}'. Supported platforms: kirigami, silica, qtcontrols, uuitk.")
endif()
add_subdirectory(libwatchfish)
add_subdirectory(lib)
add_subdirectory(daemon)
add_subdirectory(ui)