-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 938 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.0)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
project(PlayBar)
set(CMAKE_CXX_STANDARD 14)
set(QT_MIN_VERSION "5.4.1")
set(KF5_MIN_VERSION "5.9.0")
set(CMAKE_INSTALL_PREFIX /usr)
set(KDE_INSTALL_LIBDIR lib64/qt5)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Widgets Quick QuickWidgets)
# CMAKE EXTRA MODULES
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Plasma PlasmaQuick WindowSystem ConfigWidgets XmlGui GlobalAccel I18n)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(KDEInstallDirs)
include(ECMPackageConfigHelpers)
add_subdirectory(engine)
add_subdirectory(plasmoid)
add_subdirectory(plasmoid-systray)
file(GLOB_RECURSE SRCS *.qml *.js main.xml *.desktop *.operations)
add_custom_target(contents SOURCES ${SRCS})
ki18n_install(po)