-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
executable file
·73 lines (62 loc) · 1.48 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
cmake_minimum_required(VERSION 2.8.3)
project(rog_map_example)
set(CMAKE_CXX_STANDARD 14)
#set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-O3 -Wall -g -fPIC")
add_compile_options(-DQT_NO_VERSION_TAGGING)
add_compile_options(-Werror=unused-variable)
add_compile_options(-Werror=return-type)
add_definitions(-DORIGIN_AT_CORNER)
#add_definitions(-DORIGIN_AT_CENTER)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
pcl_ros
geometry_msgs
nav_msgs
rog_map
)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES rog_map
# CATKIN_DEPENDS roscpp rospy std_msgs
# DEPENDS system_lib
)
include_directories(
SYSTEM
include
../../../../devel/include
${catkin_INCLUDE_DIRS}
${Eigen3_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
set(THIRD_PARTY
${catkin_LIBRARIES}
${PCL_LIBRARIES}
-ldw
)
add_library(kdtree
include/utils/kdtree.c
)
add_executable(rrt_example_node
Apps/rrt_example_node.cpp
)
target_link_libraries(rrt_example_node
${THIRD_PARTY}
kdtree
)
add_executable(astar_example_node
Apps/astar_example_node.cpp
)
target_link_libraries(astar_example_node
${THIRD_PARTY}
)
add_executable(marsim_example_node
Apps/marsim_example_node.cpp
)
target_link_libraries(marsim_example_node
${THIRD_PARTY}
)