5 macro_bool_to_01(FALSE HAVE_NEPOMUK)
7 qt4_add_dbus_adaptor(kget_adaptor_SRCS org.kde.kget.xml mainwindow.h MainWindow)
10 add_subdirectory(core)
12 add_subdirectory(transfer-plugins)
13 add_subdirectory(extensions)
14 add_subdirectory(sounds)
15 add_subdirectory(desktop)
17 add_subdirectory(plasma)
21 ${CMAKE_SOURCE_DIR}/kget/core/
22 ${CMAKE_CURRENT_BINARY_DIR}
26 ${SOPRANO_INCLUDE_DIR}
27 ${NEPOMUK_INCLUDE_DIR}
29 add_definitions(-DHAVE_NEPOMUK)
33 add_definitions(-DHAVE_SQLITE)
43 core/transfertreemodel.cpp
44 core/transfertreeselectionmodel.cpp
46 core/transfergroup.cpp
47 core/transfergrouphandler.cpp
48 core/transferhandler.cpp
49 core/transfergroupscheduler.cpp
50 core/plugin/plugin.cpp
51 core/plugin/transferfactory.cpp
52 core/transferdatasource.cpp
53 core/datasourcefactory.cpp
54 core/kuiserverjobs.cpp
55 core/kgetglobaljob.cpp
58 core/transferhistorystore.cpp
65 core/nepomukhandler.cpp
69 kde4_add_kcfg_files(kgetcore_SRCS conf/settings.kcfgc)
72 kde4_add_library(kgetcore SHARED ${kgetcore_SRCS})
74 target_link_libraries(kgetcore ${KDE4_KIO_LIBS})
77 target_link_libraries(kgetcore ${SOPRANO_LIBRARIES} ${NEPOMUK_LIBRARIES})
81 target_link_libraries(kgetcore ${QT_QTSQL_LIBRARY})
84 set_target_properties(kgetcore PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
85 install(TARGETS kgetcore ${INSTALL_TARGETS_DEFAULT_ARGS})
90 set(kget_SRCS ${kget_adaptor_SRCS}
91 conf/dlgdirectories.cpp
92 conf/dlgwebinterface.cpp
93 conf/preferencesdialog.cpp
94 conf/transfersgroupwidget.cpp
95 conf/selectdirectoryitemdelegate.cpp
96 dbus/dbusmodelobserver.cpp
97 dbus/dbustransfergroupobserver.cpp
100 ui/transfersviewdelegate.cpp
102 ui/transferdetails.cpp
104 ui/viewscontainer.cpp
105 ui/newtransferdialog.cpp
106 ui/groupsettingsdialog.cpp
107 ui/transfersettingsdialog.cpp
109 ui/history/rangetreewidget.cpp
110 ui/history/transferhistory.cpp
111 ui/history/transferhistoryitemdelegate.cpp
112 ui/history/transferhistorycategorizeddelegate.cpp
113 ui/history/transferhistorycategorizedview.cpp
114 ui/linkview/kget_linkview.cpp
118 extensions/webinterface/httpserver.cpp
128 kde4_add_ui_files(kget_SRCS
130 conf/dlgappearance.ui
131 conf/dlgdirectories.ui
132 conf/dlgwebinterface.ui
134 ui/transferdetailsfrm.ui
135 ui/newtransferwidget.ui
136 ui/history/transferhistory.ui
137 ui/groupsettingsdialog.ui
138 ui/transfersettingsdialog.ui
140 kde4_add_app_icon(kget_SRCS "ui/icons/hi*-apps-kget.png")
142 kde4_add_executable(kget ${kget_SRCS})
144 target_link_libraries(kget ${KDE4_KDEUI_LIBRARY} ${KDE4_KIO_LIBRARY} ${KDE4_KNOTIFYCONFIG_LIBRARY} kgetcore)
146 install(TARGETS kget ${INSTALL_TARGETS_DEFAULT_ARGS})