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
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
25 ${randrinternal_PART_SRCS})
27 kde4_add_ui_files(kcm_randr_PART_SRCS
28 legacyrandrconfigbase.ui
33 kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
36 target_link_libraries(kcm_randr ${KDE4_KDEUI_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
38 install(TARGETS kcm_randr DESTINATION ${PLUGIN_INSTALL_DIR} )
41 ########### next target ###############
44 ########### next target ###############
50 krandrpassivepopup.cpp ${randrinternal_PART_SRCS})
53 kde4_add_executable(krandrtray ${krandrtray_SRCS})
55 target_link_libraries(krandrtray ${KDE4_KUTILS_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
57 install(TARGETS krandrtray ${INSTALL_TARGETS_DEFAULT_ARGS})
60 ########### install files ###############
62 install( FILES krandrtray.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
63 install( FILES randr.desktop DESTINATION ${SERVICES_INSTALL_DIR} )