You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/languages/cpp/app_templates/kde4app/kde4app-CMakeLists.txt

32 lines
828 B

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} )