kde-extraapps/kget/transfer-plugins/contentfetch/CMakeLists.txt
Ivailo Monev e6966211de generic: remove use of kde4_add_ui_files() macro
the macro was removed and UI sources generation is done by CMake because
CMAKE_AUTOUIC is set to ON from KDE4Defaults.

this fixes build with Attica and Marble.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 17:41:26 +00:00

45 lines
1.4 KiB
CMake

add_subdirectory(scripts)
include_directories(
../../
)
set(kget_contentfetchfactory_PART_SRCS
contentfetch.cpp
contentfetchfactory.cpp
script.cpp
scriptdownloadengine.cpp
scriptconfigadaptor.cpp
)
kde4_add_kcfg_files(kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kde4_add_plugin(kget_contentfetchfactory ${kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kget_contentfetchfactory
${KDE4_KIO_LIBS}
${KDE4_KROSSCORE_LIBS}
${KDE4_KROSSUI_LIBS}
kgetcore
)
install(TARGETS kget_contentfetchfactory DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
install(FILES kget_contentfetchfactory.kcfg DESTINATION ${KDE4_KCFG_INSTALL_DIR})
###Build KCM-Module
set(kcm_kget_contentfetchfactory_PART_SRCS
dlgcontentfetchsettingwidget.cpp
dlgscriptediting.cpp
scriptconfigadaptor.cpp
dlgcontentfetchsettingwidget.ui
dlgscriptediting.ui
)
kde4_add_kcfg_files(kcm_kget_contentfetchfactory_PART_SRCS contentfetchsetting.kcfgc)
kde4_add_plugin(kcm_kget_contentfetchfactory ${kcm_kget_contentfetchfactory_PART_SRCS})
target_link_libraries(kcm_kget_contentfetchfactory ${KDE4_KIO_LIBS}
${KDE4_KROSSCORE_LIBS} ${KDE4_KROSSUI_LIBS})
install(TARGETS kcm_kget_contentfetchfactory DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES kget_contentfetchfactory_config.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})