-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
49 lines (39 loc) · 1.63 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
cmake_minimum_required(VERSION 2.8.12)
project(Runnerlinuxcommands)
find_package(ECM 5.12.0 REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH
${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH}
)
# Find the required Libaries
find_package (Qt5 ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Core Network Quick QuickWidgets)
find_package (KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Service Runner TextWidgets ConfigWidgets PlasmaQuick)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
set(krunner_linuxcommands_SRCS
linux_commands.cpp
)
set(kcm_krunner_linuxcommands_SRCS
config/linux_commands_config.cpp
)
ki18n_wrap_ui(kcm_krunner_linuxcommands_SRCS config/linux_commands_config.ui)
add_library(kcm_krunner_linuxcommands MODULE ${kcm_krunner_linuxcommands_SRCS})
target_link_libraries(kcm_krunner_linuxcommands
Qt5::Core
Qt5::Gui
KF5::CoreAddons
KF5::ConfigCore
KF5::I18n
KF5::ConfigWidgets
KF5::Runner
)
# Now make sure all files get to the right place
add_library(krunner_linuxcommands MODULE ${krunner_linuxcommands_SRCS})
target_link_libraries(krunner_linuxcommands KF5::Runner Qt5::Widgets Qt5::Network
KF5::I18n
KF5::Service
KF5::ConfigWidgets
KF5::Plasma)
add_dependencies(krunner_linuxcommands kcm_krunner_linuxcommands)
install(TARGETS krunner_linuxcommands kcm_krunner_linuxcommands DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-runner-linuxcommands.desktop config/plasma-runner-linuxcommands_config.desktop DESTINATION ${SERVICES_INSTALL_DIR})