forked from dawnkd/light_control
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
127 lines (112 loc) · 2.56 KB
/
CMakeLists.txt
File metadata and controls
127 lines (112 loc) · 2.56 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
cmake_minimum_required(VERSION 2.8.3)
project(scr_control)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
)
## System dependencies are found with CMake's conventions
find_package(Boost REQUIRED COMPONENTS system)
find_package(Boost REQUIRED COMPONENTS python)
find_package(PythonLibs 2.7 REQUIRED)
## Uncomment if the package has a setup.py
catkin_python_setup()
## Generate messages in the 'msg' folder
add_message_files(
FILES
AddressColors.msg
LightChange.msg
CCT.msg
Intensity.msg
RAGBW.msg
)
## Generate services in the 'srv' folder
add_service_files(
FILES
LightState.srv
TestLightChange.srv
OctaLight_CCT.srv
OctaLight_int.srv
OctaLight_sources.srv
OctaLight_sourcesAll.srv
OctaLight_CCTAll.srv
GetBlinds.srv
GetCCT.srv
GetInt.srv
GetSources.srv
GetLights.srv
BlindLift.srv
BlindLiftAll.srv
BlindTilt.srv
BlindTiltAll.srv
COSReadAll.srv
COSReadOne.srv
COSInteTime.srv
TOFGetDistances.srv
TOFGetDistancesAll.srv
TOFSetCounting.srv
HVAC_SetTemp.srv
HVAC_SetFanSp.srv
HVAC_SetEp.srv
HVAC_SetBms.srv
HVAC_GetTemp.srv
HVAC_GetEp.srv
HVAC_GetCO2.srv
HVAC_GetRH.srv
)
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
# light
)
catkin_package(
# CATKIN_DEPENDS message_runtime
# INCLUDE_DIRS include
CATKIN_DEPENDS roscpp
# DEPENDS system_lib
)
########################################
# Enable C++ Time of Flight sensor CPP #
########################################
SET(CMAKE_CXX_COMPILER, "g++")
SET(CMAKE_CXX_FLAGS "-w -D_GLIBCXX_USE_CXX11_ABI=0")
#link_directories(
# src/time_of_flight/lib/x86_64-linux-g++-4.6.3-glibc-2.15/iris/sensor-api/static
# src/time_of_flight/lib/x86_64-linux-g++-4.6.3-glibc-2.15/3rd_party/boost-1_55_0/static
#)
#add_executable(TOF src/time_of_flight/SCR/test.cpp)
#target_include_directories(
# TOF PUBLIC
# src/time_of_flight/include/iris/sensor-api
# src/time_of_flight/include/3rd_party/boost-1_55_0
#
include_directories(
# include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
/usr/include/python2.7
)
#target_link_libraries(
# TOF PUBLIC
# ${catkin_LIBRARIES}
# IrmaMatrix
# boost_system-mt
# boost_filesystem-mt
# boost_thread-mt
# boost_regex-mt
# boost_date_time-mt
# boost_chrono-mt
# boost_regex
# dl
# pthread
#)
#add_dependencies(TOF ${catkin_EXPORTED_TARGETS})