CMakeLists.txt 1.62 KB
Newer Older
Aditya Mehra's avatar
Aditya Mehra committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Set minimum CMake version (required for CMake 3.0 or later)
cmake_minimum_required(VERSION 3.0)
cmake_policy(SET CMP0048 NEW)
project(plasma-big-launcher VERSION "2.0.0")

set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.0.0")
 
# Use Extra CMake Modules (ECM) for common functionality.
# See http://api.kde.org/ecm/manual/ecm.7.html
# and http://api.kde.org/ecm/manual/ecm-kde-modules.7.html 
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH})
set(VERSION 2.1.0)

16
include(ECMQMLModules)
Aditya Mehra's avatar
Aditya Mehra committed
17
18
19
20
21
22
23
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMInstallIcons)

# Locate plasma_install_package macro.
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Marco Martin's avatar
Marco Martin committed
24
25
    Activities
    ActivitiesStats
Aditya Mehra's avatar
Aditya Mehra committed
26
27
    Plasma
    I18n
28
    Kirigami2
Marco Martin's avatar
Marco Martin committed
29
30
    Declarative
    KCMUtils
Aditya Mehra's avatar
Aditya Mehra committed
31
32
33
34
35
36
37
    Notifications
    PlasmaQuick
    KIO
    Wayland
    WindowSystem
)

Marco Martin's avatar
Marco Martin committed
38
39
40
find_package(LibKWorkspace 5.15 CONFIG REQUIRED)


Aditya Mehra's avatar
Aditya Mehra committed
41
42
43
44
45
46
47
48
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
    Quick
    Core
    Qml
    DBus
    Network
)

49
50
51
52
53
54
ecm_find_qmlmodule(Mycroft 1.0)

if(NOT ${Mycroft-QMLModule_FOUND})
    message(WARNING "Could not find the Mycroft QML module. Voice interaction features will not be available.")
endif()

55
add_subdirectory(containments)
56
add_subdirectory(kcms)
57
add_subdirectory(components)
58
add_subdirectory(sounds)
Aditya Mehra's avatar
Aditya Mehra committed
59

60
plasma_install_package(shell org.kde.plasma.mycroft.bigscreen shells)
Marco Martin's avatar
Marco Martin committed
61
plasma_install_package(lookandfeel org.kde.plasma.mycroft.bigscreen look-and-feel lookandfeel)
62

Marco Martin's avatar
Marco Martin committed
63

64
65
install(FILES bin/mycroft-skill-launcher.py DESTINATION ${BIN_INSTALL_DIR})