Files
MuditaOS/module-sys/SystemManager/CMakeLists.txt
Maciej-Mudita f4aaf4e302 [MOS-775] Create run-time statistics for tasks
Every hour, statistics of tasks that put a heavy load
on the CPU will be logged
2022-10-25 18:46:54 +02:00

58 lines
1.5 KiB
CMake

add_library(sys-manager STATIC)
target_sources(sys-manager
PUBLIC
include/SystemManager/DependencyGraph.hpp
include/SystemManager/CpuSentinel.hpp
include/SystemManager/CpuStatistics.hpp
include/SystemManager/SystemManagerCommon.hpp
include/SystemManager/CpuGovernor.hpp
include/SystemManager/PowerManager.hpp
include/SystemManager/DeviceManager.hpp
include/SystemManager/TaskStatistics.hpp
PRIVATE
CpuGovernor.cpp
CpuSentinel.cpp
GovernorSentinelOperations.cpp
CpuStatistics.cpp
TaskStatistics.cpp
CpuLogPrinter.cpp
CpuPackPrinter.cpp
data/SystemManagerActionsParams.hpp
DependencyGraph.cpp
DeviceManager.cpp
graph/TopologicalSort.cpp
graph/TopologicalSort.hpp
PowerManager.cpp
SystemManagerCommon.cpp
cpu/AlgorithmFactory.cpp
cpu/algorithm/Algorithm.cpp
cpu/algorithm/FrequencyHold.cpp
cpu/algorithm/ImmediateUpscale.cpp
cpu/algorithm/FrequencyStepping.cpp
)
target_include_directories(sys-manager
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
)
target_link_libraries(sys-manager
PUBLIC
apps-common
service-evtmgr
eventstore
sys-service
sys-common
PRIVATE
service-desktop
msgpack11
system-stats-sink
Microsoft.GSL::GSL
)
if (${ENABLE_TESTS})
add_subdirectory(tests)
endif()