forked from ethz-asl/ros-system-monitor
-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
58 lines (50 loc) · 1017 Bytes
/
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
48
49
50
51
52
53
54
55
56
57
58
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
DiagnosticHDD.msg
DiagnosticMEM.msg
DiagnosticNET.msg
Disk.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/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}
)