2014-11-13 19:30:51 +02:00
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
add_subdirectory(module)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
include_directories(${X11_Xrandr_INCLUDE_PATH})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(randrinternal_PART_SRCS
|
2022-11-03 16:35:42 +02:00
|
|
|
randr.cpp
|
|
|
|
randrdisplay.cpp
|
|
|
|
collapsiblewidget.cpp
|
|
|
|
layoutmanager.cpp
|
|
|
|
outputconfig.cpp
|
|
|
|
outputgraphicsitem.cpp
|
|
|
|
randrconfig.cpp
|
|
|
|
randrcrtc.cpp
|
|
|
|
randrmode.cpp
|
|
|
|
randroutput.cpp
|
2023-06-18 18:30:56 +03:00
|
|
|
randrscreen.cpp
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
set(kcm_randr_PART_SRCS
|
2022-11-03 16:35:42 +02:00
|
|
|
${randrinternal_PART_SRCS}
|
|
|
|
krandrmodule.cpp
|
|
|
|
randrconfigbase.ui
|
|
|
|
outputconfigbase.ui
|
2015-09-01 04:37:19 +03:00
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
|
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
target_link_libraries(kcm_randr
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kdeui
|
2022-11-03 16:35:42 +02:00
|
|
|
${X11_Xrandr_LIB}
|
|
|
|
${X11_LIBRARIES}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
install(
|
|
|
|
TARGETS kcm_randr
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
install(
|
|
|
|
FILES randr.desktop
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2024-05-09 22:57:29 +03:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
add_executable(krandr krandr.cpp)
|
|
|
|
target_link_libraries(krandr
|
|
|
|
KDE4::kdecore
|
|
|
|
${X11_X11_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS krandr
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES krandr.desktop
|
|
|
|
DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR}
|
|
|
|
)
|