2014-11-19 17:18:01 +00:00
|
|
|
#Set supported mime type
|
|
|
|
SET(SUPPORTED_KGET_MIMETYPES "${SUPPORTED_KGET_MIMETYPES}application/metalink+xml;" PARENT_SCOPE)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
../../
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kget_metalinkfactory_PART_SRCS
|
2015-09-02 02:13:50 +03:00
|
|
|
metalinkfactory.cpp
|
|
|
|
abstractmetalink.cpp
|
|
|
|
metalinkxml.cpp
|
|
|
|
metalinkhttp.cpp
|
|
|
|
fileselectiondlg.cpp
|
|
|
|
../../ui/metalinkcreator/metalinker.cpp
|
2014-11-19 17:18:01 +00:00
|
|
|
fileselection.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_kcfg_files(kget_metalinkfactory_PART_SRCS metalinksettings.kcfgc)
|
|
|
|
|
|
|
|
kde4_add_plugin(kget_metalinkfactory ${kget_metalinkfactory_PART_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kget_metalinkfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kgetcore)
|
|
|
|
|
2020-02-08 18:39:41 +00:00
|
|
|
install(TARGETS kget_metalinkfactory DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kget_metalinkfactory.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|
2014-11-19 17:18:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
###Build KCM-Module
|
|
|
|
set(kcm_kget_metalinkfactory_PART_SRCS
|
2015-09-02 02:13:50 +03:00
|
|
|
dlgmetalink.cpp
|
|
|
|
dlgmetalink.ui
|
2014-11-19 17:18:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_kcfg_files(kcm_kget_metalinkfactory_PART_SRCS metalinksettings.kcfgc)
|
|
|
|
kde4_add_plugin(kcm_kget_metalinkfactory ${kcm_kget_metalinkfactory_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kget_metalinkfactory ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
|
2020-02-08 18:39:41 +00:00
|
|
|
install(TARGETS kcm_kget_metalinkfactory DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-19 17:18:01 +00:00
|
|
|
|
2020-02-08 18:39:41 +00:00
|
|
|
install(FILES kget_metalinkfactory_config.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|