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

« back to all changes in this revision

Viewing changes to kcontrol/xinerama/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
include_directories( ${X11_Xinerama_INCLUDE_PATH}   )
 
2
 
 
3
########### next target ###############
 
4
set(kcm_xinerama_kwin_SRCS)
 
5
 
 
6
 
 
7
set(kwin_xml  ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/org.kde.KWin.xml)
 
8
SET_SOURCE_FILES_PROPERTIES(${kwin_xml} PROPERTIES INCLUDE "interface_util.h")
 
9
 
 
10
QT4_ADD_DBUS_INTERFACE( kcm_xinerama_kwin_SRCS ${kwin_xml} kwin_interface )
 
11
 
 
12
 
 
13
set(kcm_xinerama_PART_SRCS kcmxinerama.cpp xineramawidget.cpp ${kcm_xinerama_kwin_SRCS})
 
14
 
 
15
 
 
16
 
 
17
kde4_add_ui_files(kcm_xinerama_PART_SRCS xineramawidget.ui )
 
18
 
 
19
kde4_add_plugin(kcm_xinerama ${kcm_xinerama_PART_SRCS})
 
20
 
 
21
 
 
22
target_link_libraries(kcm_xinerama  ${KDE4_KDEUI_LIBS} ${X11_Xinerama_LIB})
 
23
 
 
24
install(TARGETS kcm_xinerama  DESTINATION ${PLUGIN_INSTALL_DIR} )
 
25
 
 
26
########### next target ###############
 
27
 
 
28
set(test_kcm_xinerama_SRCS test_kcm_xinerama.cpp ${kcm_xinerama_kwin_SRCS} )
 
29
add_executable(test_kcm_xinerama ${test_kcm_xinerama_SRCS})
 
30
target_link_libraries(test_kcm_xinerama  ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
 
31
if (CMAKE_SYSTEM_NAME MATCHES BSD)
 
32
    target_link_libraries(test_kcm_xinerama pthread)
 
33
endif (CMAKE_SYSTEM_NAME MATCHES BSD)
 
34
install(TARGETS test_kcm_xinerama  DESTINATION ${LIBEXEC_INSTALL_DIR} )
 
35
 
 
36
########### install files ###############
 
37
 
 
38
install( FILES xinerama.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )