代码拉取完成,页面将自动刷新
同步操作将从 openKylin/kylin-app-cgroupd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。