kde-workspace/kcontrol/randr/CMakeLists.txt

65 lines
1.6 KiB
Text
Raw Normal View History

2014-11-13 19:30:51 +02:00
if( XRANDR_1_2_FOUND )
macro_optional_add_subdirectory(module)
endif( XRANDR_1_2_FOUND )
configure_file (config-randr.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-randr.h )
include_directories( ${X11_Xrandr_INCLUDE_PATH} )
########### next target ###############
set(randrinternal_PART_SRCS
ktimerdialog.cpp
randr.cpp
randrdisplay.cpp
collapsiblewidget.cpp
legacyrandrscreen.cpp)
if( XRANDR_1_2_FOUND )
set(randrinternal_PART_SRCS ${randrinternal_PART_SRCS} layoutmanager.cpp
outputconfig.cpp outputgraphicsitem.cpp randrconfig.cpp randrcrtc.cpp
randrmode.cpp randroutput.cpp randrscreen.cpp)
endif( XRANDR_1_2_FOUND )
set(kcm_randr_PART_SRCS
krandrmodule.cpp
legacyrandrconfig.cpp
2015-09-01 04:37:19 +03:00
${randrinternal_PART_SRCS}
2014-11-13 19:30:51 +02:00
legacyrandrconfigbase.ui
randrconfigbase.ui
2015-09-01 04:37:19 +03:00
outputconfigbase.ui
)
2014-11-13 19:30:51 +02:00
kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
target_link_libraries(kcm_randr ${KDE4_KDEUI_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
2015-09-01 04:37:19 +03:00
install(TARGETS kcm_randr DESTINATION ${PLUGIN_INSTALL_DIR})
2014-11-13 19:30:51 +02:00
########### next target ###############
set(krandrtray_SRCS
main.cpp
krandrtray.cpp
krandrapp.cpp
krandrpassivepopup.cpp
${randrinternal_PART_SRCS}
)
2014-11-13 19:30:51 +02:00
add_executable(krandrtray ${krandrtray_SRCS})
2014-11-13 19:30:51 +02:00
target_link_libraries(krandrtray ${KDE4_KCMUTILS_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
2014-11-13 19:30:51 +02:00
install(TARGETS krandrtray ${INSTALL_TARGETS_DEFAULT_ARGS})
2014-11-13 19:30:51 +02:00
########### next target ###############
install(PROGRAMS krandrstartup DESTINATION ${BIN_INSTALL_DIR})
install(FILES randr.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(PROGRAMS krandrtray.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})