1 Star 0 Fork 8

xuyongliang_01/kiran-session-guard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.5)
project(kiran-session-guard)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
include(GNUInstallDirs)
include(qdbus-wrapper)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
#登录中隐藏的用户列表,以‘,’分割
set(HIDDEN_USER "" CACHE STRING "hidden user list,separated by commas")
#是否显示关机选项
set(CAN_POWER_OFF true CACHE BOOL "shutdown button display")
#是否显示重启选项
set(CAN_REBOOT true CACHE BOOL "reboot button display")
#是否显示挂起选项
set(CAN_SUSPEND true CACHE BOOL "suspend button display")
#是否显示休眠选项
set(CAN_HIBERNATE true CACHE BOOL "hibernate button display")
#NumLock初始化状态,是否点亮NumLock,true点亮NumLock,false不处理
set(NUMLOCK_INIT_STATE true CACHE BOOL "NumLock initialization status")
find_package(PkgConfig REQUIRED)
find_package(Qt5 COMPONENTS Core Gui Widgets X11Extras DBus LinguistTools)
pkg_search_module(KLOG_QT5 REQUIRED klog-qt5)
pkg_search_module(KIRAN_STYLE_HELPER REQUIRED kiran-style-helper)
pkg_search_module(KIRAN_CC_DAEMON REQUIRED kiran-cc-daemon)
pkg_search_module(KIRANWIDGETS_QT5 REQUIRED kiranwidgets-qt5)
add_subdirectory(./lib)
add_subdirectory(./src)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyongliang-01/kiran-session-guard.git
git@gitee.com:xuyongliang-01/kiran-session-guard.git
xuyongliang-01
kiran-session-guard
kiran-session-guard
master

搜索帮助