-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
14 lines (12 loc) · 6.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.23)
project(DataStructure)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_FLAGS "-O3")
add_library(DataStructure src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h)
add_executable(HeapTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Cache/LRUCache.h src/Memory/Memory.c src/Memory/Memory.h Test/HeapTest.c src/CounterHashMap.c src/CounterHashMap.h)
add_executable(LruCacheTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/LruCacheTest.c src/CounterHashMap.c src/CounterHashMap.h)
add_executable(CounterHashMapTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/CounterHashMapTest.c)
add_executable(TreeTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/TreeTest.c)
add_executable(ArrayListTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/ArrayListTest.c)
add_executable(HashSetTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/HashSetTest.c)
add_executable(HashMapTest src/LinkedList/Node.c src/LinkedList/Node.h src/LinkedList/LinkedList.c src/LinkedList/LinkedList.h src/Stack.c src/Stack.h src/Queue.c src/Queue.h src/ArrayList.c src/ArrayList.h src/Heap/HeapNode.c src/Heap/HeapNode.h src/Heap/Heap.c src/Heap/Heap.h src/HashMap/HashMap.c src/HashMap/HashMap.h src/HashMap/HashNode.c src/HashMap/HashNode.h src/HashMap/HashSet.c src/HashMap/HashSet.h src/Cache/LRUCache.c src/Cache/LRUCache.h src/Tree/TreeNode.c src/Tree/TreeNode.h src/Tree/Tree.c src/Tree/Tree.h src/Tree/AvlTreeNode.c src/Tree/AvlTreeNode.h src/Tree/AvlTree.c src/Tree/AvlTree.h src/Tree/BTreeNode.c src/Tree/BTreeNode.h src/Tree/BTree.c src/Tree/BTree.h src/CounterHashMap.c src/CounterHashMap.h src/HashMap/LinkedHashMap.c src/HashMap/LinkedHashMap.h src/Memory/Memory.c src/Memory/Memory.h Test/HashMapTest.c Test/HashMapTest.c)