-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
55 lines (47 loc) · 1.37 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
cmake_minimum_required(VERSION 2.8.3)
project(navigation)
SET(CMAKE_BUILD_TYPE Debug)
ADD_DEFINITIONS(
-std=c++11 # Or -std=c++0x
-Wno-deprecated
)
find_package(
OpenCV REQUIRED
)
find_package(PCL 1.3 REQUIRED COMPONENTS common kdtree octree search sample_consensus segmentation io)
include_directories(include /usr/include ${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_library(${PROJECT_NAME}
src/sensors_drivers/logparser.cpp
# src/sensors_drivers/phidgetdevice.cpp
src/utils/gui.cpp
src/utils/angles.cpp
src/utils/maneuvervelocities.cpp
src/data_types/pole.cpp
src/data_types/line.cpp
src/data_manipulation/poleextractor.cpp
src/data_manipulation/lineextractor.cpp
src/data_manipulation/ekfstateestimator.cpp
src/data_manipulation/egomotionestimator.cpp
src/motion_planners/linefollowermp.cpp
src/motion_planners/endlineturnmp.cpp
src/operations/motionoperation.cpp
)
add_executable(${PROJECT_NAME}_test
src/navigation.cpp
)
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${PCL_COMMON_LIBRARIES}
${PCL_SEARCH_LIBRARIES}
${PCL_SAMPLE_CONSENSUS_LIBRARIES}
${PCL_KDTREE_LIBRARIES}
${PCL_OCTREE_LIBRARIES}
${PCL_SEGMENTATION_LIBRARIES}
${PCL_IO_LIBRARIES}
# phidget21
)
target_link_libraries(${PROJECT_NAME}_test
${PROJECT_NAME}
)