-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (40 loc) · 934 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
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.26)
project(brix)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
find_package(glad CONFIG REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(soil2 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
add_executable(brix main.cpp
cube.h
cube.cpp
chunk.cpp
chunk.h
shader.cpp
shader.h
camera.cpp
camera.h
vbo.cpp
vbo.h
vao.cpp
vao.h
texture.cpp
texture.h
window.cpp
window.h
gfx.h
world.cpp
world.h
renderer.cpp
renderer.h
font.cpp
font.h
debug.cpp
debug.h
FastNoiseLite.h
)
target_link_libraries(brix PRIVATE glfw)
target_link_libraries(brix PRIVATE glad::glad)
target_link_libraries(brix PRIVATE soil2)
target_link_libraries(brix PRIVATE glm::glm)