2022-06-02 16:31:24 +08:00
|
|
|
project(set4kScale)
|
|
|
|
|
|
|
|
pkg_check_modules(X11 REQUIRED x11)
|
|
|
|
pkg_check_modules(XCB REQUIRED xcb)
|
|
|
|
pkg_check_modules(QGS REQUIRED gsettings-qt)
|
2023-04-26 20:29:38 +08:00
|
|
|
pkg_check_modules(KDKINFO REQUIRED kysdk-sysinfo)
|
2022-06-02 16:31:24 +08:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${X11_INCLUDE_DIRS}
|
|
|
|
${XCB_INCLUDE_DIRS}
|
|
|
|
${QGS_INCLUDE_DIRS}
|
2023-04-26 20:29:38 +08:00
|
|
|
${KDKINFO_INCLUDE_DIRS}
|
2022-06-02 16:31:24 +08:00
|
|
|
)
|
|
|
|
|
2023-04-26 20:29:38 +08:00
|
|
|
link_directories(
|
|
|
|
${KDKINFO_LIBRARY_DIRS})
|
|
|
|
|
2022-06-02 16:31:24 +08:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
set(bin_SRCS
|
|
|
|
${bin_SRCS}
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(set4kScale ${bin_SRCS})
|
2023-04-26 20:29:38 +08:00
|
|
|
target_link_libraries(set4kScale Qt5::Core Qt5::Widgets Qt5::X11Extras ${X11_LIBRARIES} ${XCB_LIBRARIES} ${QGS_LIBRARIES} ${KDKINFO_LIBRARIES})
|
2022-06-02 16:31:24 +08:00
|
|
|
|
|
|
|
install(TARGETS
|
|
|
|
set4kScale
|
|
|
|
DESTINATION lib/ukui-screensaver)
|