2022-06-02 16:31:24 +08:00
|
|
|
pkg_check_modules(X11 REQUIRED x11)
|
|
|
|
pkg_check_modules(XTST REQUIRED xtst)
|
|
|
|
pkg_check_modules(QGS REQUIRED gsettings-qt)
|
2024-01-26 17:49:14 +08:00
|
|
|
|
2022-06-02 16:31:24 +08:00
|
|
|
include_directories(${PROJECT_BINARY_DIR})
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/Common)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${X11_INCLUDE_DIRS}
|
|
|
|
${XTST_INCLUDE_DIRS}
|
|
|
|
${QGS_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(EXTRA_LIBS
|
|
|
|
${EXTRA_LIBS}
|
|
|
|
${X11_LIBRARIES}
|
|
|
|
${XTST_LIBRARIES}
|
2024-04-08 17:09:20 +08:00
|
|
|
${QGS_LIBRARIES}
|
|
|
|
Common
|
2022-06-02 16:31:24 +08:00
|
|
|
)
|
|
|
|
qt5_add_resources(screensaver_SRC
|
|
|
|
default.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_wrap_cpp(screensaver_SRC
|
|
|
|
chinesedate.h
|
|
|
|
screensaver.h
|
|
|
|
mbackground.h
|
|
|
|
cyclelabel.h
|
|
|
|
scconfiguration.h
|
|
|
|
sleeptime.h
|
2024-04-08 17:09:20 +08:00
|
|
|
weathermanager.h
|
2022-06-02 16:31:24 +08:00
|
|
|
../src/networkwatcher.h
|
|
|
|
)
|
|
|
|
set(screensaver_SRC
|
|
|
|
${screensaver_SRC}
|
|
|
|
main.cpp
|
|
|
|
chinesedate.cpp
|
|
|
|
mbackground.cpp
|
|
|
|
screensaver.cpp
|
|
|
|
cyclelabel.cpp
|
|
|
|
scconfiguration.cpp
|
|
|
|
sleeptime.cpp
|
2024-04-08 17:09:20 +08:00
|
|
|
weathermanager.cpp
|
2022-06-02 16:31:24 +08:00
|
|
|
../src/networkwatcher.cpp
|
|
|
|
)
|
|
|
|
add_executable(ukui-screensaver-default ${screensaver_SRC})
|
|
|
|
target_link_libraries(ukui-screensaver-default Qt5::Core Qt5::Widgets Qt5::X11Extras Qt5::Xml Qt5::Network ${EXTRA_LIBS})
|
|
|
|
|
|
|
|
install(TARGETS
|
|
|
|
ukui-screensaver-default
|
|
|
|
DESTINATION lib/ukui-screensaver)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
language/screensaver-zh_CN.ini
|
|
|
|
language/screensaver-en_US.ini
|
|
|
|
language/screensaver-jd.ini
|
|
|
|
DESTINATION share/ukui-screensaver/language)
|