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
|
|
|
ktimerdialog.cpp
|
|
|
|
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
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-11-17 16:25:33 +02:00
|
|
|
set(krandrtray_SRCS
|
2022-11-03 16:35:42 +02:00
|
|
|
${randrinternal_PART_SRCS}
|
2015-11-17 16:25:33 +02:00
|
|
|
main.cpp
|
|
|
|
krandrtray.cpp
|
|
|
|
krandrapp.cpp
|
|
|
|
krandrpassivepopup.cpp
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2015-11-17 16:25:33 +02:00
|
|
|
add_executable(krandrtray ${krandrtray_SRCS})
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
target_link_libraries(krandrtray
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kcmutils
|
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(
|
2023-06-17 18:38:55 +03:00
|
|
|
TARGETS krandrtray
|
2023-06-18 18:13:22 +03:00
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
2022-11-03 16:35:42 +02:00
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
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
|
|
|
|
2022-11-03 16:35:42 +02:00
|
|
|
install(
|
|
|
|
PROGRAMS krandrtray.desktop
|
|
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
|
|
)
|