cmake_minimum_required(VERSION 2.6) project(webkam) find_package(KDE4 REQUIRED) include(KDE4Defaults) include(FindGStreamer) install( DIRECTORY pixmaps DESTINATION ${CMAKE_INSTALL_PREFIX}/share/webkam/ ) install( DIRECTORY sounds DESTINATION ${CMAKE_INSTALL_PREFIX}/share/webkam/ ) install( PROGRAMS bin/webkam DESTINATION ${CMAKE_INSTALL_PREFIX}/bin ) install( DIRECTORY src/ DESTINATION lib/webkam FILES_MATCHING PATTERN "*.rb") install( FILES webkam.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) kde4_install_icons(${ICON_INSTALL_DIR} )