Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / randr / CMakeLists.txt
blob124fd4a6ee9be26b812b84f0466c2ccc1804e784
1 include_directories( ${X11_Xrandr_INCLUDE_PATH}  )
3 configure_file (config-randr.h.cmake
4 ${CMAKE_CURRENT_BINARY_DIR}/config-randr.h )
6 ########### next target ###############
9 set(randrinternal_PART_SRCS 
10    ktimerdialog.cpp
11    randr.cpp 
12    randrdisplay.cpp
13    collapsiblewidget.cpp
14    legacyrandrscreen.cpp) 
16 if( XRANDR_1_2_FOUND )
17    set(randrinternal_PART_SRCS ${randrinternal_PART_SRCS} layoutmanager.cpp 
18        outputconfig.cpp outputgraphicsitem.cpp randrconfig.cpp randrcrtc.cpp 
19 randrmode.cpp randroutput.cpp randrscreen.cpp)
20 endif( XRANDR_1_2_FOUND )
22 set(kcm_randr_PART_SRCS 
23    krandrmodule.cpp 
24    legacyrandrconfig.cpp
25    ${randrinternal_PART_SRCS})
27 kde4_add_ui_files(kcm_randr_PART_SRCS
28    legacyrandrconfigbase.ui
29    randrconfigbase.ui
30    outputconfigbase.ui)
33 kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
36 target_link_libraries(kcm_randr  ${KDE4_KDEUI_LIBS} ${X11_Xrandr_LIB} )
38 install(TARGETS kcm_randr  DESTINATION ${PLUGIN_INSTALL_DIR} )
41 ########### next target ###############
44 ########### next target ###############
46 set(krandrtray_SRCS 
47    main.cpp 
48    krandrtray.cpp 
49    krandrapp.cpp 
50    krandrpassivepopup.cpp ${randrinternal_PART_SRCS})
53 kde4_add_executable(krandrtray ${krandrtray_SRCS})
55 target_link_libraries(krandrtray  ${KDE4_KUTILS_LIBS} ${X11_Xrandr_LIB} )
57 install(TARGETS krandrtray DESTINATION ${BIN_INSTALL_DIR})
60 ########### install files ###############
62 install( FILES krandrtray.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
63 install( FILES randr.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
65 kde4_install_icons( ${ICON_INSTALL_DIR}  )