-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (18 loc) · 1.24 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
cmake_minimum_required(VERSION 3.22)
project(delaunay_path_planner_core)
set(CMAKE_CXX_STANDARD 20)
find_package(CGAL REQUIRED)
find_package(lart_common REQUIRED)
include_directories(include ${CGAL_INCLUDE_DIRS} ${gtest_INCLUDE_DIRS})
add_subdirectory(lib/googletest)
add_library(delaunay_path_planner_core SHARED src/Environment.cpp
src/search/SearchAlgorithm.cpp src/search/heuristics/Heuristic.cpp src/search/AStar.cpp
src/search/heuristics/AStarHeuristic.cpp src/search/InformedSearchAlgorithm.cpp
src/PathPlanner.cpp src/search/heuristics/PathFindingHeuristic.cpp test/EnvironmentTests.cpp
src/search/heuristics/ClosestConeFindingHeuristic.cpp src/search/BreadthFirstSearch.cpp )
target_link_libraries(delaunay_path_planner_core lart_common ${CGAL_LIBRARIES})
add_executable(test test/Misc.cpp test/ConeSearchTests.cpp test/EnvironmentTests.cpp test/PathFindingTests.cpp)
target_link_libraries(test delaunay_path_planner_core gtest gtest_main)
install(TARGETS delaunay_path_planner_core LIBRARY DESTINATION /usr/lib/delaunay_path_planner_core)
install(DIRECTORY include/delaunay_path_planner_core DESTINATION /usr/include)
install(FILES delaunay_path_planner_coreConfig.cmake DESTINATION /usr/lib/delaunay_path_planner_core)