-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
75 lines (65 loc) · 1.4 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
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 2.8.3)
project(cil_slam)
# add_compile_options(-std=c++11)
set(CMAKE_CXX_FLAGS "-std=c++11 -march=native -O3")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
sensor_msgs
geometry_msgs
cv_bridge
image_transport
message_generation
)
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
add_message_files(
FILES
FeatureLines.msg
FeaturePoints.msg
ImgInfo.msg
)
generate_messages(
DEPENDENCIES
geometry_msgs
sensor_msgs
std_msgs
nav_msgs
)
catkin_package(
CATKIN_DEPENDS
message_runtime
message_generation
geometry_msgs
sensor_msgs
std_msgs
nav_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_executable(visual_tracker
src/visual_node.cc
src/feature_tracker.cc
src/linefeature_tracker.cc
)
target_link_libraries(visual_tracker ${catkin_LIBRARIES} ${OpenCV_LIBS})
#######
# Test
#######
add_executable(feature_tracker
test/feature_tracker_node.cc
src/feature_tracker.cc
)
target_link_libraries(feature_tracker ${catkin_LIBRARIES} ${OpenCV_LIBS})
add_executable(line_feature_tracker
test/linefeature_tracker_node.cc
src/linefeature_tracker.cc
)
target_link_libraries(line_feature_tracker ${catkin_LIBRARIES} ${OpenCV_LIBS})