Switch to use KConfig XT
[icord-viewer:icord-viewer.git] / src / icord-viewer / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${KDE4_INCLUDES})
2
3 set(icord-viewer_SRCS
4     actions.cpp
5     connectionsettingswidget.cpp
6     deleterecordingsdialog.cpp
7     deleterecordingsprogressdialog.cpp
8     downloadprogressdialog.cpp
9     filterwidget.cpp
10     ftpprogresslistener.cpp
11     icordviewer.cpp
12     main.cpp
13     recordinglistview.cpp
14     recordingsortfiltertablemodel.cpp
15     recordingtableview.cpp
16     )
17
18 set(icord-viewer_UIS
19     connectionsettingswidget.ui
20     downloadprogressdialog.ui
21     filterwidget.ui
22     recordinglistview.ui
23     )
24
25 kde4_add_ui_files(icord-viewer_UIS_H ${icord-viewer_UIS})
26 kde4_add_kcfg_files(icord-viewer_SRCS settings.kcfgc)
27
28
29 kde4_add_executable(icord-viewer ${icord-viewer_SRCS} ${icord-viewer_UIS_H} ${icord-viewer_RC_SRCS})
30 target_link_libraries(icord-viewer icord ${KDE4_KDEUI_LIBS})
31
32 install(TARGETS icord-viewer ${INSTALL_TARGETS_DEFAULT_ARGS})
33 install(FILES icord-viewerui.rc DESTINATION ${DATA_INSTALL_DIR}/icord-viewer)
34 install(FILES icord-viewer.kcfg DESTINATION ${KCFG_INSTALL_DIR})
35 install(FILES icord-viewer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
36
37 kde4_install_icons( ${ICON_INSTALL_DIR}  )