-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 882 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
cmake_minimum_required(VERSION 3.20)
project(geoviz)
set(CMAKE_CXX_STANDARD 20)
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS})
include_directories(include)
add_subdirectory(lib/glad)
add_subdirectory(lib/glm)
add_subdirectory(lib/SDL)
add_subdirectory(lib/CLI11)
set(
SRC_FILES
src/main.cpp
src/vox-spiral.cpp
src/core/SDLContextLogic.cpp
src/core/GLProgram.cpp
src/core/VertexArrayObject.cpp
src/core/Renderer.cpp
src/core/ShaderFactory.cpp
src/core/ShaderFile.cpp
src/primitives/PrimitiveBuilder.cpp
src/core/Geomodel.cpp
)
#src/core/Buffer.cpp
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG_WITH_GDB)
endif()
#src/core/VertexIndexMediator.cpp
add_executable(${PROJECT_NAME} ${SRC_FILES})
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} SDL3::SDL3 glad glm CLI11::CLI11)