3 configure_file(config-ksnapshot.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksnapshot.h)
5 ########### next target ###############
7 set(ksnapshot_file_SRCS
16 ${ksnapshot_file_SRCS})
18 qt4_add_dbus_adaptor(ksnapshot_SRCS org.kde.ksnapshot.xml ksnapshot.h KSnapshot)
21 kde4_add_ui_files(ksnapshot_SRCS ksnapshotwidget.ui)
23 kde4_add_app_icon(ksnapshot_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-ksnapshot.png")
25 kde4_add_executable(ksnapshot ${ksnapshot_SRCS})
27 target_link_libraries(ksnapshot ${KDE4_KIO_LIBS} ${X11_LIBRARIES})
29 install(TARGETS ksnapshot ${INSTALL_TARGETS_DEFAULT_ARGS})
32 ########### next target ###############
34 set(kbackgroundsnapshot_SRCS
35 kbackgroundsnapshot.cpp
36 ${ksnapshot_file_SRCS})
39 kde4_add_executable(kbackgroundsnapshot ${kbackgroundsnapshot_SRCS})
41 target_link_libraries(kbackgroundsnapshot ${KDE4_KIO_LIBS} ${X11_LIBRARIES})
43 install(TARGETS kbackgroundsnapshot ${INSTALL_TARGETS_DEFAULT_ARGS})
45 ########### install files ###############
49 install(FILES ksnapshot.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
50 install(FILES org.kde.ksnapshot.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
51 kde4_install_icons(${ICON_INSTALL_DIR} )