forked from ernestmc/ros-dmx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (48 loc) · 1023 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 3.0.2)
project(dmx_ros)
find_package(catkin REQUIRED
COMPONENTS
message_generation
message_runtime
roscpp
roslint
std_msgs
)
add_message_files(DIRECTORY msg
FILES
Dmx.msg
)
add_service_files(DIRECTORY srv
FILES
GetChannel.srv
SetChannel.srv
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS
message_runtime
roscpp
std_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
# Roslint cpp
set(ROSLINT_CPP_OPTS "--filter=-legal/copyright")
roslint_cpp()
add_executable(dmx_node src/dmx_node.cpp)
add_library(dmx485 src/dmx485.c)
add_dependencies(dmx_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(dmx_node ${catkin_LIBRARIES} dmx485)
install(
TARGETS
dmx485
dmx_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)