-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (26 loc) · 1.1 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
cmake_minimum_required(VERSION 3.6)
project(RunnerKonohaZku)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_BUILD_TYPE debug)
find_package(ECM 5.12.0 REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH
${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH}
)
set(BOOST_ROOT /opt/boost)
set(Boost_USE_STATIC_LIBS ON)
find_package (Qt5 ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Core Quick)
find_package (KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n Service Runner TextWidgets PlasmaQuick)
find_package(Boost COMPONENTS system)
include_directories(${Boost_INCLUDE_DIR})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
set(krunner_konohazku_SRCS konohazku.cpp )
add_library(krunner_konohazku MODULE ${krunner_konohazku_SRCS})
target_link_libraries(krunner_konohazku KF5::Runner Qt5::Widgets
KF5::I18n
KF5::Service
KF5::Plasma
${Boost_LIBRARIES})
install(TARGETS krunner_konohazku DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-runner-konohazku.desktop DESTINATION ${SERVICES_INSTALL_DIR})