-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
57 lines (48 loc) · 1.54 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
55
56
57
cmake_minimum_required(VERSION 3.28.0)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
add_compile_options(-Wall)
project(unnominable
VERSION 0.1.0.0)
add_executable(${PROJECT_NAME}
src/world/camera.cpp
src/world/camera.hpp
src/world/chunk.cpp
src/world/chunk.hpp
src/world/planet.cpp
src/world/planet.hpp
src/world/world.hpp
src/log.cpp
src/log.hpp
src/main.cpp
src/main.hpp
src/math.cpp
src/math.hpp
src/model.cpp
src/model.hpp
src/objects.cpp
src/objects.hpp
src/render.cpp
src/render.hpp
src/shader.cpp
src/shader.hpp
src/texture.cpp
src/texture.hpp
src/types.cpp
src/types.hpp
src/util.cpp
src/util.hpp)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/sdl2)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/assimp)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_gfx REQUIRED)
find_package(SDL2_ttf REQUIRED)
find_package(assimp REQUIRED)
include_directories("${assimp_INCLUDE_DIRS}")
add_library(GLAD STATIC "${CMAKE_SOURCE_DIR}/lib/glad/src/gl.c")
include_directories("${CMAKE_SOURCE_DIR}/lib/glad/include/")
include_directories("${CMAKE_SOURCE_DIR}/lib/termstylist/include/")
include_directories("${CMAKE_SOURCE_DIR}/lib/include/")
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2::Main SDL2::Image SDL2::GFX SDL2::TTF assimp GLAD)