CMakeLists.txt 2.37 KB
Newer Older
Aaron Seigo's avatar
Aaron Seigo committed
1
project(plasma-phone-components)
Aaron Seigo's avatar
Aaron Seigo committed
2 3 4 5 6 7 8 9 10 11

# minimal requirements
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.2.0")
set(KF5_MIN_VERSION "5.0.0")

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)


12
find_package(ECM 5.41.0 REQUIRED NO_MODULE)
13
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
Aaron Seigo's avatar
Aaron Seigo committed
14 15 16 17 18 19 20 21 22 23 24 25

include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(ECMMarkNonGuiExecutable)
include(ECMGenerateHeaders)
include(GenerateExportHeader)
include(FeatureSummary)

26
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Gui Widgets Qml Quick Test)
Aaron Seigo's avatar
Aaron Seigo committed
27

28
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma Service Declarative I18n KIO People)
29
find_package(KF5 REQUIRED COMPONENTS PlasmaQuick DBusAddons Notifications)
30
find_package(TelepathyQt5 REQUIRED)
31 32 33 34
find_package(KF5Wayland CONFIG)
set_package_properties(KF5Wayland PROPERTIES
                       TYPE REQUIRED
                       PURPOSE "Required for interacting with the compositor")
Aaron Seigo's avatar
Aaron Seigo committed
35

36 37 38 39 40
# torch
find_package(GStreamer 1.1.90 REQUIRED)
find_package(GLIB2 REQUIRED)
find_package(GObject REQUIRED)

Aaron Seigo's avatar
Aaron Seigo committed
41 42
include(CheckIncludeFiles)

43 44 45
plasma_install_package(look-and-feel org.kde.plasma.phone look-and-feel)
plasma_install_package(shell org.kde.plasma.phone shells)
install(DIRECTORY wallpaper/ DESTINATION "${WALLPAPER_INSTALL_DIR}/org.kde.plasma.phone.lockers")
46

47 48 49
install( DIRECTORY kwinmultitasking/ DESTINATION ${DATA_INSTALL_DIR}/kwin/scripts/org.kde.phone.multitasking )
install( FILES kwinmultitasking/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR} RENAME kwin-script-org.kde.phone.multitasking.desktop )

Marco Martin's avatar
Marco Martin committed
50
install( DIRECTORY qtvirtualkeyboardplugin/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/VirtualKeyboard/Styles/Plasma )
51

Bhushan Shah's avatar
Bhushan Shah committed
52 53 54 55 56 57
configure_file(plasma-mobile.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop)
install(FILES
        ${CMAKE_CURRENT_BINARY_DIR}/plasma-mobile.desktop
        DESTINATION ${KDE_INSTALL_DATADIR}/wayland-sessions
)

58
add_subdirectory(bin)
59
#add_subdirectory(services)
60
add_subdirectory(applets)
Marco Martin's avatar
Marco Martin committed
61
add_subdirectory(containments)
Jonah Brüchert's avatar
Jonah Brüchert committed
62
add_subdirectory(components)
63
add_subdirectory(dialer)
64
add_subdirectory(sounds)
65
#add_subdirectory(touchscreentest)
66 67

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)