-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (43 loc) · 1.53 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
cmake_minimum_required(VERSION 3.10)
# Adding the project
project(Algorithms)
# Include directories
include_directories(include)
# Adding the project version
project(Algorithms VERSION 1.0)
# Globbing all header files
file(GLOB_RECURSE HEADER_FILES include/*.h)
# Find openCV package
find_package(OpenCV REQUIRED)
# include directories
include_directories( ${OpenCV_INCLUDE_DIRS} )
# Adding source files
add_executable(main
src/sorting/bubblesort.cpp
src/sorting/quicksortfat.cpp
src/sorting/quicksorthoare.cpp
src/sorting/quicksortlomuto.cpp
src/sorting/selectionsort.cpp
src/sorting/insertionsort.cpp
src/sorting/heapsort.cpp
src/sorting/countingsort.cpp
src/sorting/pancakesort.cpp
src/sorting/radixsort.cpp
src/filter/kernel.cpp
src/filter/convolution.cpp
src/graph/Dijkstra/dijkstra.cpp
src/graph/Dijkstra/edge.cpp
src/graph/Dijkstra/graph.cpp
src/graph/Dijkstra/vertex.cpp
src/graph/DFS/dfs.cpp
src/graph/DFS/edges.cpp
src/graph/DFS/graph.cpp
src/graph/BFS/bfs.cpp
src/graph/BFS/graph.cpp
src/helper/helperfun.cpp
src/main.cpp
${HEADER_FILES})
# Add debugging flags and additional warnings
target_compile_options(main PUBLIC -g -Wall -Wextra)
# Linking the libs
target_link_libraries(main ${OpenCV_LIBS})