-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (39 loc) · 1.04 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
cmake_minimum_required(VERSION 3.27)
project(VoxelEngine)
set(CMAKE_CXX_STANDARD 23)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif ()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
add_executable(VoxelEngine main.cpp
src/glad.c
main.cpp
include/Shader.h
include/InputManager.h
src/stb_image.cpp
include/stb_image.h
include/Voxel.h
include/World.h
include/Chunk.h
include/TextureManager.h
include/Camera.h
include/PerlinNoise.h
include/PerlinNoise.h
include/ThreadPool.h
include/Player.h
include/AABB.h
include/Collisions.h
src/Camera.cpp
src/Chunk.cpp
src/Collisions.cpp
src/Player.cpp
src/Shader.cpp
src/TextureManager.cpp
src/ThreadPool.cpp
src/World.cpp
src/Skybox.cpp
src/Skybox.h
)
target_link_libraries(VoxelEngine -lglfw -lGL -lX11 -lpthread -lXrandr -lXi -ldl)