forked from RobotnikAutomation/system_monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (40 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 2.8.3)
project(system_monitor)
find_package(catkin REQUIRED COMPONENTS rospy std_msgs message_generation)
add_message_files(
FILES
CoreTemp.msg
CoreUsage.msg
CPUTemperatureStatus.msg
CPUUsageStatus.msg
Diagnostic.msg
DiagnosticCPUTemperature.msg
DiagnosticCPUUsage.msg
DiagnosticGPU.msg
DiagnosticHDD.msg
DiagnosticMEM.msg
DiagnosticNET.msg
Disk.msg
GPUStatus.msg
HDDStatus.msg
Interface.msg
Memory.msg
MEMStatus.msg
NetStatus.msg)
generate_messages(
DEPENDENCIES std_msgs system_monitor # Or other packages containing msgs
)
catkin_package(CATKIN_DEPENDS rospy message_runtime)
include_directories(# include
${catkin_INCLUDE_DIRS})
install(
PROGRAMS bin/cpu_monitor.py
bin/gpu_monitor.py
bin/hdd_monitor.py
bin/mem_monitor.py
bin/net_monitor.py
bin/ntp_monitor.py
bin/system_monitor_node.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY bin config launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})