-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (42 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
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.0.0)
project("dots-and-boxes" VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
include_directories(
"src"
)
find_package(glm CONFIG REQUIRED)
find_package(GLEW REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(freetype CONFIG REQUIRED)
add_executable(
${PROJECT_NAME}
"src/main.cpp"
"src/game/game.cpp"
"src/utils/log.cpp"
# utils/fs
"src/utils/fs/fs.cpp"
# utils/gl
"src/utils/gl/shader_program.cpp"
"src/utils/gl/gl.cpp"
# game/state
"src/game/state/main_menu.cpp"
"src/game/state/game_state.cpp"
"src/game/state/board_state.cpp"
# engine
"src/engine/timer.cpp"
# drawables
"src/engine/drawable/box.cpp"
"src/engine/drawable/dot.cpp"
"src/engine/drawable/line.cpp"
"src/engine/drawable/character.cpp"
"src/engine/drawable/text.cpp"
)
target_link_libraries(
${PROJECT_NAME}
PRIVATE GLEW::GLEW
PRIVATE SDL2::SDL2
PRIVATE glm::glm
PRIVATE imgui::imgui
PRIVATE freetype
)