kde-extraapps/kget/transfer-plugins/contentfetch/CMakeLists.txt
Ivailo Monev 59190d3194 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:12:24 +00:00

44 lines
1.5 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
)
kde4_add_ui_files(kcm_kget_contentfetchfactory_PART_SRCS
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})