-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (36 loc) · 1.11 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(tutorial_rosardu_customtopic)
find_package(catkin REQUIRED cmake_modules)
find_package(Eigen REQUIRED)
find_package(OpenCV REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
cv_bridge
std_msgs
message_generation
)
## Generate messages in the 'msg' folder
add_message_files(
FILES
packetsToExcavator.msg
packetsFromExcavator.msg
)
## Generate added messages and services with any dependencies listed here.
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
DEPENDS Eigen
CATKIN_DEPENDS message_runtime roscpp
)
set(includeDirs ${includeDirs} ${CMAKE_CURRENT_BINARY_DIR})
set(includeDirs ${includeDirs} include)
set(SRC ${SRC} src/main.cpp)
include_directories( ${includeDirs} )
include_directories( ${catkin_INCLUDE_DIRS} )
include_directories( ${Eigen_INCLUDE_DIRS} )
set(DCMAKE_build_type release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pg -O2 -msse3 -march=native -mfpmath=sse")
add_executable (rosardu_communication ${SRC})
target_link_libraries (rosardu_communication ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${Eigen_LIBRARIES})