-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·87 lines (76 loc) · 2.01 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
76
77
78
79
80
81
82
83
84
85
86
87
cmake_minimum_required(VERSION 2.8)
project(OpenSpacePlanner)
set(CMAKE_CXX_STANDARD 17)
message("cmake OpenSpacePlanner...")
set(CMAKE_BUILD_TYPE Debug)
# set(project_link_directories
# Ipopt_x86pc/lib/
# # ${CMAKE_FIND_ROOT_PATH}/usr/lib
# )
# link_directories (
# ${project_link_directories}
# )
include_directories(
Ipopt_x86pc/include/coin-or
include/open_space_planner
src
)
link_directories(
${PROJECT_SOURCE_DIR}/Ipopt_x86pc/lib
# ${PROJECT_SOURCE_DIR}/../../Ipopt_x86pc/lib
)
add_library(open_space_planner SHARED
src/Grid.cpp
src/Point.cpp
src/Pose.cpp
src/GridRect.cpp
src/Rect.cpp
src/Map.cpp
src/GeometryFunc.cpp
src/AStarNode.cpp
src/AStarPlanner.cpp
src/HybridAStarNode.cpp
src/ReedsSheppPath.cpp
src/HybridAStarPlanner.cpp
src/PathOptIpoptNlp.cpp
src/PathSmoother.cpp
src/IaOptimizer.cpp
)
target_link_libraries(open_space_planner
# pthread
ipopt
)
# if (NOT ALL)
# set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib/${BUILD_PROJECT}/${BUILD_PLATFORM})
# endif()
find_package(Boost REQUIRED COMPONENTS filesystem)
# if ((TEST) AND (NOT ALL))
find_package(OpenCV REQUIRED)
set(OpenCV_LIBS
opencv_core
opencv_video
opencv_imgproc
opencv_calib3d
opencv_videoio
opencv_highgui
opencv_imgcodecs)
# FILE(GLOB_RECURSE OpenCV_LIBS "../apa_sdk/lib/libopencv*")
include_directories(
# ../apa_sdk/include
/usr/local/include
)
# set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/test/bin/${BUILD_PROJECT}/${BUILD_PLATFORM})
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/test/bin)
add_executable(test_open_space_planner
test/TestHybridAStarPlanner.cpp
# test/TestAStarPlanner.cpp
)
target_link_libraries(test_open_space_planner
open_space_planner
# ../apa_sdk/lib/${OpenCV_LIBS}
${OpenCV_LIBS}
${Boost_LIBRARIES}
# pthread
# ipopt
)
# endif()