kde-workspace/kcontrol/randr/CMakeLists.txt
Ivailo Monev 591b538337 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00

64 lines
1.7 KiB
CMake

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
${randrinternal_PART_SRCS}
legacyrandrconfigbase.ui
randrconfigbase.ui
outputconfigbase.ui
)
kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
target_link_libraries(kcm_randr ${KDE4_KDEUI_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
install(TARGETS kcm_randr DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### next target ###############
set(krandrtray_SRCS
main.cpp
krandrtray.cpp
krandrapp.cpp
krandrpassivepopup.cpp
${randrinternal_PART_SRCS}
)
add_executable(krandrtray ${krandrtray_SRCS})
target_link_libraries(krandrtray ${KDE4_KCMUTILS_LIBS} ${X11_Xrandr_LIB} ${X11_LIBRARIES})
install(TARGETS krandrtray ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
install(PROGRAMS krandrstartup DESTINATION ${KDE4_BIN_INSTALL_DIR})
install(FILES randr.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
install(PROGRAMS krandrtray.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR})