1 macro_optional_find_package(BTCore)
2 macro_log_feature(BTCORE_FOUND "BTCore" "KTorrent core library" "http://ktorrent.org/" FALSE "" "Needed to build Torrent support in KGet")
5 add_definitions(${KDE4_ENABLE_EXCEPTIONS})
12 set(kget_bittorrentfactory_PART_SRCS
20 advanceddetails/btadvanceddetailswidget.cpp
21 advanceddetails/chunkdownloadmodel.cpp
22 advanceddetails/chunkdownloadview.cpp
23 advanceddetails/fileview.cpp
24 advanceddetails/iwfilelistmodel.cpp
25 advanceddetails/iwfiletreemodel.cpp
26 advanceddetails/peerview.cpp
27 advanceddetails/torrentfilelistmodel.cpp
28 advanceddetails/torrentfilemodel.cpp
29 advanceddetails/torrentfiletreemodel.cpp
30 advanceddetails/monitor.cpp
31 advanceddetails/trackerview.cpp
34 kde4_add_ui_files(kget_bittorrentfactory_PART_SRCS
38 advanceddetails/btaddtrackerwidget.ui
39 advanceddetails/chunkdownloadview.ui
40 advanceddetails/trackerview.ui
43 kde4_add_kcfg_files(kget_bittorrentfactory_PART_SRCS bittorrentsettings.kcfgc)
45 kde4_add_plugin(kget_bittorrentfactory ${kget_bittorrentfactory_PART_SRCS})
47 target_link_libraries(kget_bittorrentfactory ${KDE4_KDEUI_LIBS} ${BTCORE_LIBRARIES} kgetcore)
49 install(TARGETS kget_bittorrentfactory DESTINATION ${PLUGIN_INSTALL_DIR})
50 install(FILES kget_bittorrentfactory.desktop DESTINATION ${SERVICES_INSTALL_DIR})