-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (26 loc) · 1.39 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
cmake_minimum_required(VERSION 3.25)
project(data_structures_and_algorithms)
set(CMAKE_CXX_STANDARD 17)
include_directories(data_structures)
######################### Linked List #########################
add_executable(linked_list_test data_structures/LinkedList/LinkedListTest.cpp)
######################### Stack #########################
add_library(stack_lib SHARED
data_structures/Stack/ArrayBased/ArrayBasedStack.cpp
data_structures/Stack/LinkedListBased/LinkedListBasedStack.cpp)
add_executable(array_based_stack_test
data_structures/Stack/ArrayBased/ArrayBasedStackTest.cpp)
target_link_libraries(array_based_stack_test stack_lib)
add_executable(linked_list_based_stack_test
data_structures/Stack/LinkedListBased/LinkedListBasedStackTest.cpp)
target_link_libraries(linked_list_based_stack_test stack_lib)
######################### Queue #########################
add_library(queue_lib SHARED
data_structures/Queue/ArrayBased/ArrayBasedQueue.cpp
data_structures/Queue/LinkedListBased/LinkedListBasedQueue.cpp)
add_executable(array_based_queue_test
data_structures/Queue/ArrayBased/ArrayBasedQueueTest.cpp)
target_link_libraries(array_based_queue_test queue_lib)
add_executable(linked_list_based_queue_test
data_structures/Queue/LinkedListBased/LinkedListBasedQueueTest.cpp)
target_link_libraries(linked_list_based_queue_test queue_lib)