-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (53 loc) · 1.06 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 3.23)
project(maze_solver CXX)
file(GLOB_RECURSE SRC ${CMAKE_CURRENT_SOURCE_DIR} src/*.cc)
message("SRC:${SRC}")
add_library(maze_solver ${SRC})
target_include_directories(maze_solver
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_executable(bfs_test
test/bfs_test.cc
)
target_link_libraries(bfs_test
PRIVATE
maze_solver
)
target_include_directories(bfs_test
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_executable(dfs_test
test/dfs_test.cc
)
target_link_libraries(dfs_test
PRIVATE
maze_solver
)
target_include_directories(dfs_test
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_executable(dijkstra_test
test/dijkstra_test.cc
)
target_link_libraries(dijkstra_test
PRIVATE
maze_solver
)
target_include_directories(dijkstra_test
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_executable(astar_test
test/astar_test.cc
)
target_link_libraries(astar_test
PRIVATE
maze_solver
)
target_include_directories(astar_test
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
)