mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00

see the following commit in kdelibs repo: e0d476372cd6a39a01cb8b70f31192e4d2d540c8 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
75 lines
1.3 KiB
CMake
75 lines
1.3 KiB
CMake
|
|
add_subdirectory(module)
|
|
|
|
include_directories(${X11_Xrandr_INCLUDE_PATH})
|
|
|
|
########### next target ###############
|
|
|
|
|
|
set(randrinternal_PART_SRCS
|
|
randr.cpp
|
|
randrdisplay.cpp
|
|
collapsiblewidget.cpp
|
|
layoutmanager.cpp
|
|
outputconfig.cpp
|
|
outputgraphicsitem.cpp
|
|
randrconfig.cpp
|
|
randrcrtc.cpp
|
|
randrmode.cpp
|
|
randroutput.cpp
|
|
randrscreen.cpp
|
|
)
|
|
|
|
set(kcm_randr_PART_SRCS
|
|
${randrinternal_PART_SRCS}
|
|
krandrmodule.cpp
|
|
randrconfigbase.ui
|
|
outputconfigbase.ui
|
|
)
|
|
|
|
kde4_add_plugin(kcm_randr ${kcm_randr_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_randr
|
|
KDE4::kdeui
|
|
${X11_Xrandr_LIB}
|
|
${X11_LIBRARIES}
|
|
)
|
|
|
|
install(
|
|
TARGETS kcm_randr
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
set(krandrtray_SRCS
|
|
${randrinternal_PART_SRCS}
|
|
main.cpp
|
|
krandrtray.cpp
|
|
krandrapp.cpp
|
|
)
|
|
|
|
add_executable(krandrtray ${krandrtray_SRCS})
|
|
|
|
target_link_libraries(krandrtray
|
|
KDE4::kcmutils
|
|
${X11_Xrandr_LIB}
|
|
${X11_LIBRARIES}
|
|
)
|
|
|
|
install(
|
|
TARGETS krandrtray
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
install(
|
|
FILES randr.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|
|
|
|
install(
|
|
PROGRAMS krandrtray.desktop
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
)
|