generic: misc cleanups

This commit is contained in:
Ivailo Monev 2015-09-25 01:50:19 +00:00
parent d3b86ed118
commit 08227b02d8
4 changed files with 7 additions and 20 deletions

View file

@ -3,15 +3,10 @@
########### next target ###############
set(kcm_smartcard_PART_SRCS smartcard.cpp )
kde4_add_ui_files(kcm_smartcard_PART_SRCS smartcardbase.ui nosmartcardbase.ui )
set(kcm_smartcard_PART_SRCS smartcard.cpp smartcardbase.ui nosmartcardbase.ui )
kde4_add_plugin(kcm_smartcard ${kcm_smartcard_PART_SRCS})
target_link_libraries(kcm_smartcard ksmartcard ${KDE4_KIO_LIBS} )
install(TARGETS kcm_smartcard DESTINATION ${PLUGIN_INSTALL_DIR} )

View file

@ -38,8 +38,6 @@ if (GPGME_FOUND AND QGPGME_FOUND)
set(kwalletd_SRCS
${kwalletd_SRCS}
knewwalletdialog.cpp
)
kde4_add_ui_files(kwalletd_SRCS
kwalletwizardpagepasswordgpg.ui
kwalletwizardpagegpgkey.ui
knewwalletdialogintro.ui

View file

@ -21,9 +21,11 @@ set(backgrounddialog_SRCS
../mouseplugins.cpp
../mousepluginwidget.cpp
../wallpaperpreview.cpp
../MousePlugins.ui
../MousePlugins.ui
../BackgroundDialog.ui
)
kde4_add_ui_files(backgrounddialog_SRCS ../MousePlugins.ui ../MousePlugins.ui ../BackgroundDialog.ui)
kde4_add_kcfg_files(backgrounddialog_SRCS ../../../plasma/desktop/shell/data/plasma-shell-desktop.kcfgc)
add_executable(plasmabackgrounddialog ${backgrounddialog_SRCS})

View file

@ -5,19 +5,11 @@ macro(homerun_add_unit_test _test)
set(_src ${_cpp}.cpp)
set(_ui "")
foreach(_name ${ARGN})
if(${_name} MATCHES "\\.ui$")
set(_ui ${_ui} ${_name})
else()
set(_src ${_src} ${_name})
endif()
set(_src ${_src} ${_name})
endforeach()
if(_ui)
kde4_add_ui_files(_src ${_ui})
endif()
qt4_automoc(${_src})
kde4_add_unit_test(${_test} ${_src})
target_link_libraries(${_test}
kde4_add_test(homerun-${_test} ${_src})
target_link_libraries(homerun-${_test}
${KDE4_PLASMA_LIBS}
${KDE4_KFILE_LIBS}
${KDE4_KIO_LIBS}