-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
91 lines (80 loc) · 1.83 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
cmake_minimum_required(VERSION 3.1.0)
project(szakdolgozat)
set(CMAKE_CXX_STANDARD_REQUIRED 11)
set(DEPS_DIR dependencies)
include_directories(
${DEPS_DIR}/glfw/include
${DEPS_DIR}/glm
${DEPS_DIR}/glad-build/include
${DEPS_DIR}/tinyobjloader
${DEPS_DIR}/stb
${DEPS_DIR}/nanogui/include
${DEPS_DIR}/nanogui/ext/Eigen
)
link_directories(
${DEPS_DIR}/glfw-build/src
${DEPS_DIR}/nanogui-build
)
set(GLAD_sources
${DEPS_DIR}/glad-build/include/glad/glad.h
${DEPS_DIR}/glad-build/src/glad.c
)
set(tinyobjloader_sources
${DEPS_DIR}/tinyobjloader/tiny_obj_loader.h
${DEPS_DIR}/tinyobjloader/tiny_obj_loader.cc
)
set(SOURCES
src/AABB.h
src/AABB.cpp
src/Camera.h
src/Camera.cpp
src/FrameBuffer.h
src/FrameBuffer.cpp
src/FullscreenQuad.h
src/FullscreenQuad.cpp
src/main.cpp
src/lights.h
src/lights.cpp
src/log.h
src/GUI.h
src/GUI.cpp
src/materials.h
src/materials.cpp
src/Mesh.h
src/Mesh.cpp
src/Program.h
src/Program.cpp
src/Renderer.h
src/Renderer.cpp
src/Settings.h
src/Settings.cpp
src/Shader.h
src/Shader.cpp
src/Skybox.h
src/Skybox.cpp
src/Texture.h
src/Texture.cpp
src/TextureArray.h
src/TextureArray.cpp
src/Texture2D.h
src/Texture2D.cpp
src/TextureCubeMap.h
src/TextureCubeMap.cpp
src/Vertex.h
src/VertexArray.h
src/VertexArray.cpp
src/VertexBuffer.h
src/VertexBuffer.cpp
src/VertexFormatDescriptor.h
src/VertexFormatDescriptor.cpp
src/Window.h
src/Window.cpp
${GLAD_sources}
${tinyobjloader_sources}
)
# Visual Studio specific
source_group(glad FILES ${GLAD_sources})
source_group(tinyobjloader FILES ${tinyobjloader_sources})
# ---
add_executable(pbr_renderer ${SOURCES})
target_link_libraries(pbr_renderer glfw3 nanogui)