blob: 2544a2717f6f2705f6ea1bf45b579d1c01f33b0b (
plain)
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
|
project(%{APPNAME})
find_package(KDE4 REQUIRED)
include (KDE4Defaults)
include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
set(%{APPNAMELC}_SRCS
%{APPNAMELC}.cpp
main.cpp
%{APPNAMELC}view.cpp
)
#kde4_automoc(${%{APPNAMELC}_SRCS})
kde4_add_ui_files(%{APPNAMELC}_SRCS %{APPNAMELC}view_base.ui prefs_base.ui)
kde4_add_kcfg_files(%{APPNAMELC}_SRCS settings.kcfgc )
kde4_add_executable(%{APPNAMELC} ${%{APPNAMELC}_SRCS})
target_link_libraries(%{APPNAMELC} ${KDE4_KDEUI_LIBS} )
install(TARGETS %{APPNAMELC} DESTINATION ${BIN_INSTALL_DIR} )
########### install files ###############
install( FILES %{APPNAMELC}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES %{APPNAMELC}.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES %{APPNAMELC}ui.rc DESTINATION ${DATA_INSTALL_DIR}/%{APPNAMELC} )
|