-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
64 lines (51 loc) · 1.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake_minimum_required(VERSION 2.8.3)
project(fusion)
set(CMAKE_CXX_FLAGS "-std=c++11")
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
sensor_msgs
std_msgs
message_generation
vision
)
add_message_files(
FILES
Position.msg
Rectangle.msg
Box.msg
FusionMsg.msg
)
find_package(OpenCV REQUIRED)
find_package(Boost COMPONENTS filesystem)
generate_messages(
DEPENDENCIES
sensor_msgs
std_msgs
)
catkin_package(CATKIN_DEPENDS message_runtime std_msgs)
aux_source_directory(src/ SRC_LIST)
include_directories(
include
/usr/include/
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${vision_INCLUDE_DIRS}
)
link_directories(
/usr/lib/
/usr/local/lib/
/usr/lib/x86_64-linux-gnu/
)
add_executable(fusion ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${Boost_LIBRARIES}
${vision_LIBRARIES}
)