ukui-screensaver/set4kScale/CMakeLists.txt

35 lines
760 B
CMake
Raw Permalink Normal View History

project(set4kScale)
pkg_check_modules(X11 REQUIRED x11)
pkg_check_modules(XCB REQUIRED xcb)
pkg_check_modules(QGS REQUIRED gsettings-qt)
2024-01-26 17:49:14 +08:00
pkg_check_modules(KDKINFO kysdk-sysinfo)
2024-01-26 17:49:14 +08:00
if (KDKINFO_FOUND)
ADD_DEFINITIONS(-DKDKINFO_FOUND="true")
2024-01-26 17:49:14 +08:00
endif()
include_directories(
${X11_INCLUDE_DIRS}
${XCB_INCLUDE_DIRS}
${QGS_INCLUDE_DIRS}
${KDKINFO_INCLUDE_DIRS}
)
link_directories(
${KDKINFO_LIBRARY_DIRS})
set(CMAKE_AUTOMOC ON)
set(bin_SRCS
${bin_SRCS}
main.cpp
)
add_executable(set4kScale ${bin_SRCS})
target_link_libraries(set4kScale Qt5::Core Qt5::Widgets Qt5::X11Extras ${X11_LIBRARIES} ${XCB_LIBRARIES} ${QGS_LIBRARIES} ${KDKINFO_LIBRARIES})
install(TARGETS
set4kScale
DESTINATION lib/ukui-screensaver)