1 Star 0 Fork 4

KevinDuan/kylin-app-cgroupd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.14)
project(kylin-process-manager LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core DBus)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core DBus)
set (SRC_Sources
main.cpp
logger.cpp
processmanager.cpp
appmanagercgroupd.cpp
resourcewatcher.cpp
pressurewatcher.cpp
systemresourcewatcher.cpp
confmanager.cpp
processreclaimer.cpp
)
set (SRC_Headers
logger.h
processmanager.h
appmanagercgroupd.h
resourcewatcher.h
pressurewatcher.h
systemresourcewatcher.h
confmanager.h
processreclaimer.h
common.h)
qt5_add_dbus_adaptor(SRC_Sources configs/com.kylin.ProcessManager.xml processmanager.h ProcessManager processmanagerservice ProcessManagerService)
add_executable(kylin-process-manager
${SRC_Sources}
${SRC_Headers}
)
set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication")
add_subdirectory(third-party/SingleApplication)
target_link_libraries(kylin-process-manager SingleApplication::SingleApplication)
target_link_libraries(kylin-process-manager
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::DBus
cgroup
procps
spdlog)
#install(TARGETS kylin-app-cgroupd
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS kylin-process-manager DESTINATION /usr/bin)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kwwzzz/kylin-app-cgroupd.git
git@gitee.com:kwwzzz/kylin-app-cgroupd.git
kwwzzz
kylin-app-cgroupd
kylin-app-cgroupd
openkylin/yangtze

搜索帮助