-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
100 lines (87 loc) · 2.61 KB
/
CMakeLists.txt
File metadata and controls
100 lines (87 loc) · 2.61 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
cmake_minimum_required(VERSION 3.12)
project(Pathfinding_Problem)
set(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(SOURCE_EXE main.cpp)
# Graph components
set(VERTEX_CPP classes/Vertex/Vertex.cpp)
set(EDGE_CPP classes/Edge/Edge.cpp)
set(GRAPH_CPP classes/Graph/Graph.cpp)
# Utils
set(CSVUTIL_CPP classes/Utilities/CSVUtil/CSVUtil.cpp)
set(SHADERLOADER_CPP classes/Utilities/ShaderLoader/ShaderLoader.cpp classes/GraphItem.h classes/Exceptions.h)
add_executable(${PROJECT_NAME} ${SOURCE_EXE}
${VERTEX_CPP}
${EDGE_CPP}
${GRAPH_CPP}
${CSVUTIL_CPP}
${SHADERLOADER_CPP} gui/MainWindow.cpp gui/CustomOpenGLWidget.cpp
gui/VertexButton.cpp
gui/custom_widgets/MultiToggleButton.cpp
gui/custom_widgets/MultiToggleButton.h
gui/custom_widgets/ColorSelectButton.h
gui/custom_widgets/ColorChooser.cpp
gui/custom_widgets/ColorChooser.h
gui/custom_widgets/MultiToggleButton.cpp
gui/custom_widgets/MultiToggleButton.h
gui/custom_widgets/MapInfo.cpp
gui/custom_widgets/MapInfo.h
gui/custom_widgets/ColorSelectButton.h
classes/Category.cpp
classes/Category.h
classes/Algorithms.cpp
classes/Algorithms.h
gui/custom_widgets/StartSearchButton.h
gui/DefaultGuiSettings.cpp
gui/AlgThread.cpp
gui/AlgThread.h)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(GLEW REQUIRED)
#find_package(glfw3 REQUIRED)
#find_package(glm REQUIRED)
find_package(Qt5Widgets CONFIG REQUIRED)
message(" ")
if (OPENGL_FOUND)
message("opengl found")
message("include dir: ${OPENGL_INCLUDE_DIR}")
message("link libraries: ${OPENGL_LIBRARY}")
message(" ")
endif()
#if (GLUT_FOUND)
# message("GLUT found")
# message("include dir: ${GLUT_INCLUDE_DIR}")
# message("link libraries: ${GLUT_LIBRARY}")
# message(" ")
#endif()
#if (GLEW_FOUND)
# message("FLEW found")
# message("include dir: ${GLEW_INCLUDE_DIR}")
# message("link libraries: ${GLEW_LIBRARY}")
# message(" ")
#endif()
#
#if (glfw3_FOUND)
# message("glfw3 found")
# message(" ")
#endif()
#
#if (glm_FOUND)
# message("glm found")
# message(" ")
#endif()
if (Qt5Widgets_FOUND)
message(Qt5 found)
message(" ")
endif()
include_directories(${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME}
${OPENGL_LIBRARY}
${OPENGL_gl_LIBRARY}
# ${GLUT_LIBRARY}
${GLEW_LIBRARY}
# glfw
Qt5::Widgets)