compile
[kdegraphics.git] / ksnapshot / CMakeLists.txt
blobc36f13eb62ac9e6565d3a3f6fc5de35dea046d53
1 project(ksnapshot)
3 configure_file(config-ksnapshot.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksnapshot.h)
5 ########### next target ###############
7 set(ksnapshot_file_SRCS
8         regiongrabber.cpp
9         snapshottimer.cpp
10         windowgrabber.cpp
11         ksnapshotobject.cpp)
13 set(ksnapshot_SRCS
14    main.cpp
15    ksnapshot.cpp 
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} )