mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00
56 lines
1.2 KiB
CMake
56 lines
1.2 KiB
CMake
# Set supported mime type
|
|
SET(SUPPORTED_KGET_MIMETYPES "${SUPPORTED_KGET_MIMETYPES}application/x-bittorrent;" PARENT_SCOPE)
|
|
|
|
include_directories(
|
|
../../
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../
|
|
${LIBTORRENT_INCLUDES}
|
|
)
|
|
|
|
set(kget_torrentfactory_PART_SRCS
|
|
transferTorrent.cpp
|
|
transferTorrentFactory.cpp
|
|
)
|
|
|
|
kde4_add_plugin(kget_torrentfactory ${kget_torrentfactory_PART_SRCS})
|
|
|
|
target_link_libraries(kget_torrentfactory
|
|
KDE4::kdecore
|
|
${LIBTORRENT_LIBRARIES}
|
|
kgetcore
|
|
)
|
|
|
|
set_target_properties(kget_torrentfactory PROPERTIES
|
|
COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}"
|
|
)
|
|
|
|
install(
|
|
TARGETS kget_torrentfactory
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
install(
|
|
FILES kget_torrentfactory.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|
|
|
|
# KCM module
|
|
set(kcm_kget_torrentfactory_PART_SRCS
|
|
dlgtorrent.cpp
|
|
dlgtorrent.ui
|
|
)
|
|
|
|
kde4_add_plugin(kcm_kget_torrentfactory ${kcm_kget_torrentfactory_PART_SRCS})
|
|
target_link_libraries(kcm_kget_torrentfactory
|
|
KDE4::kdeui
|
|
${LIBTORRENT_LIBRARIES}
|
|
)
|
|
|
|
install(
|
|
TARGETS kcm_kget_torrentfactory
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
|
|
install(
|
|
FILES kget_torrentfactory_config.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|