forked from Gnurou/kdev-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (43 loc) · 1.38 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
50
51
52
53
project(kdevkernel)
find_package(KDE4 4.7.0 REQUIRED)
find_package(KDevPlatform 1.2.60 REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories(
${KDE4_INCLUDES}
${KDEVPLATFORM_INCLUDE_DIR}
${KDEVPLATFORM_INCLUDE_DIR}/../kdevelop
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_PREFIX_PATH}/include/kdevelop
)
set(kdevkernel_plugin_SRCS
kdevkernelplugin.cpp
)
kde4_add_plugin(kdevkernel
${kdevkernel_plugin_SRCS})
target_link_libraries(kdevkernel
${KDEVPLATFORM_PROJECT_LIBRARIES}
${KDEVPLATFORM_INTERFACES_LIBRARIES}
${KDEVPLATFORM_UTIL_LIBRARIES}
${KDEVPLATFORM_OUTPUTVIEW_LIBRARIES}
)
set (kdevkernel_kcm_SRCS
kcm_kdevkernel.cpp
kdevkernelconfigwidget.cpp
)
kde4_add_ui_files(kdevkernel_kcm_SRCS kdevkernelconfigwidget.ui)
kde4_add_kcfg_files(kdevkernel_kcm_SRCS kcfg_kdevkernelconfig.kcfgc)
kde4_add_plugin(kcm_kdevkernel ${kdevkernel_kcm_SRCS})
target_link_libraries(kcm_kdevkernel ${KDE4_KIO_LIBS} ${KDEVPLATFORM_INTERFACES_LIBRARIES} ${KDEVPLATFORM_LANGUAGE_LIBRARIES} ${KDEVPLATFORM_PROJECT_LIBRARIES} ${KDEVPLATFORM_UTIL_LIBRARIES})
install(
TARGETS kdevkernel
kcm_kdevkernel
DESTINATION ${PLUGIN_INSTALL_DIR}
)
install(
FILES kdevkernel.desktop
kcm_kdevkernel.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
add_subdirectory(icons)