-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
executable file
·53 lines (23 loc) · 1.47 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(kuiviewer)
########### next target ###############
set(kuiviewer_SRCS main.cpp kuiviewer.cpp )
kde4_add_app_icon(kuiviewer_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-kuiviewer.png")
kde4_add_executable(kuiviewer ${kuiviewer_SRCS})
target_link_libraries(kuiviewer ${KDE4_KPARTS_LIBS} )
install(TARGETS kuiviewer ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### next target ###############
set(kuiviewerpart_PART_SRCS kuiviewer_part.cpp )
kde4_add_plugin(kuiviewerpart ${kuiviewerpart_PART_SRCS})
target_link_libraries(kuiviewerpart ${KDE4_KPARTS_LIBS} ${QT_QTUITOOLS_LIBRARY} ${QT_QTDESIGNER_LIBRARY})
install(TARGETS kuiviewerpart DESTINATION ${PLUGIN_INSTALL_DIR} )
########### next target ###############
set(quithumbnail_PART_SRCS quicreator.cpp )
kde4_add_plugin(quithumbnail ${quithumbnail_PART_SRCS})
target_link_libraries(quithumbnail ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ${QT_QTUITOOLS_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDESIGNER_LIBRARY} )
install(TARGETS quithumbnail DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( PROGRAMS kuiviewer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES designerthumbnail.desktop kuiviewer_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kuiviewer_part.rc DESTINATION ${DATA_INSTALL_DIR}/kuiviewerpart )
install( FILES kuiviewerui.rc DESTINATION ${DATA_INSTALL_DIR}/kuiviewer )
kde4_install_icons( ${ICON_INSTALL_DIR} )