~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to klipper/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
kde4_no_enable_final(klipper)
 
2
 
 
3
set(libklipper_common_SRCS
 
4
    klipper.cpp
 
5
    urlgrabber.cpp
 
6
    configdialog.cpp
 
7
    clipboardpoll.cpp
 
8
    history.cpp
 
9
    historyitem.cpp
 
10
    historystringitem.cpp
 
11
    klipperpopup.cpp
 
12
    popupproxy.cpp
 
13
    historyimageitem.cpp
 
14
    historyurlitem.cpp
 
15
    actionstreewidget.cpp
 
16
    editactiondialog.cpp
 
17
    clipcommandprocess.cpp
 
18
)
 
19
 
 
20
macro_optional_find_package(Prison)
 
21
macro_log_feature(PRISON_FOUND "Prison" "Prison library" "http://projects.kde.org/prison" FALSE "" "Needed to create mobile barcodes from clipboard data")
 
22
if (PRISON_FOUND)
 
23
    add_definitions(-DHAVE_PRISON)
 
24
    include_directories(${PRISON_INCLUDE_DIR})
 
25
endif (PRISON_FOUND)
 
26
 
 
27
 
 
28
kde4_add_app_icon(libklipper_common_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/klipper.png")
 
29
kde4_add_ui_files(libklipper_common_SRCS generalconfig.ui actionsconfig.ui editactiondialog.ui)
 
30
kde4_add_kcfg_files(libklipper_common_SRCS klippersettings.kcfgc)
 
31
 
 
32
set(klipper_KDEINIT_SRCS ${libklipper_common_SRCS} main.cpp tray.cpp)
 
33
 
 
34
 
 
35
kde4_add_kdeinit_executable(klipper ${klipper_KDEINIT_SRCS})
 
36
 
 
37
target_link_libraries(kdeinit_klipper ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES} ${ZLIB_LIBRARY})
 
38
if (X11_Xfixes_FOUND)
 
39
  target_link_libraries(kdeinit_klipper ${X11_Xfixes_LIB})
 
40
endif (X11_Xfixes_FOUND)
 
41
if (PRISON_FOUND)
 
42
  target_link_libraries(kdeinit_klipper ${PRISON_LIBRARIES})
 
43
endif (PRISON_FOUND)
 
44
 
 
45
install(TARGETS kdeinit_klipper ${INSTALL_TARGETS_DEFAULT_ARGS})
 
46
install(TARGETS klipper         ${INSTALL_TARGETS_DEFAULT_ARGS})
 
47
 
 
48
install(PROGRAMS klipper.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
 
49
install(PROGRAMS klipper.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
 
50
 
 
51
if(NOT WIN32)
 
52
  install( FILES klipper-kconfigxt.upd DESTINATION  ${KCONF_UPDATE_INSTALL_DIR} )
 
53
endif(NOT WIN32)