forked from saiprakash-c/lcm_to_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (33 loc) · 993 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
cmake_minimum_required(VERSION 2.8.3)
project(lcm_to_ros)
# compiler flags
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
# find packages - catkin, boost, cereal
find_package(catkin REQUIRED COMPONENTS sensor_msgs roscpp)
# find_package(Boost REQUIRED COMPONENTS iostreams)
find_package(OpenCV)
# find_package(cereal REQUIRED)
catkin_package(
INCLUDE_DIRS
include
# LIBRARIES
CATKIN_DEPENDS
roscpp
sensor_msgs
DEPENDS
OpenCV
)
# include directories
include_directories(include lcmtypes src ${catkin_INCLUDE_DIRS})
# print all the variables
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
# dependencies
set(DEPENDENCIES ${catkin_LIBRARIES} ${OpenCV_LIBS} lcm)
# install executables
add_executable(lcm_to_ros src/lcm_to_ros_node.cpp src/helper.cpp)
target_link_libraries(lcm_to_ros ${DEPENDENCIES})