-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
36 lines (31 loc) · 941 Bytes
/
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
cmake_minimum_required(VERSION 3.10)
project(maze4d)
cmake_policy(SET CMP0072 NEW)
find_package(OpenGL REQUIRED)
find_package(glfw3 3.3 REQUIRED)
find_package(glm REQUIRED)
find_package(Freetype REQUIRED)
add_executable(${PROJECT_NAME}
glad/src/glad.c
maze4d/Cube.cpp
maze4d/Field.cpp
maze4d/Game.cpp
maze4d/main.cpp
maze4d/Maze.cpp
maze4d/Utils.cpp
maze4d/HotkeysMenu.cpp
maze4d/MainMenu.cpp
maze4d/MainMenuSettings.cpp
maze4d/MainUiController.cpp
maze4d/Player.cpp
maze4d/SettingsMenu.cpp
maze4d/SettingsMenuGameStart.cpp
maze4d/SettingsMenuEditorStart.cpp
maze4d/MazeField.cpp
maze4d/WinField.cpp
maze4d/RaycastingShader.cpp
maze4d/Texture.cpp
maze4d/UserInterfaceClasses.cpp
)
include_directories(SYSTEM ${FREETYPE_INCLUDE_DIRS} glad/include maze4d)
target_link_libraries(${PROJECT_NAME} gcc_s c glfw OpenGL::GL ${CMAKE_DL_LIBS} ${FREETYPE_LIBRARIES})