-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (40 loc) · 905 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
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 2.8.3)
project(marauders_map)
add_definitions(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
move_base_msgs
roscpp
sensor_msgs
)
catkin_package()
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(pathPlanner src/main.cpp src/pathPlanner.cpp src/obsDetector.cpp)
target_link_libraries(pathPlanner
${catkin_LIBRARIES}
)
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 --coverage")
add_rostest_gtest(
pathPlannerTest
test/pathPlannerTest.launch
test/main.cpp
test/pathPlannerTest.cpp
test/obsDetectorTest.cpp
src/pathPlanner.cpp
src/obsDetector.cpp
)
target_link_libraries(
pathPlannerTest
${catkin_LIBRARIES}
)
add_dependencies(
pathPlannerTest
pathPlanner
${catkin_EXPORTED_TARGETS}
)
endif()