-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (63 loc) · 2.37 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
cmake_minimum_required(VERSION 3.26)
set(CMAKE_CXX_STANDARD 20)
project(UltEngine)
find_package(glfw3 3.4 REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(assimp CONFIG REQUIRED)
add_executable(engine
dependencies/GLAD/include/glad/glad.h
dependencies/GLAD/include/KHR/khrplatform.h
dependencies/GLAD/src/glad.c
dependencies/STB/include/stb_image.h
src/Main.cpp
src/Engine.cpp
include/Engine.h
include/Options.h
src/Shader.cpp
include/Shader.h
include/Data.h
src/Mesh.cpp
include/Mesh.h
src/Scene.cpp
include/Scene.h
src/Camera.cpp
include/Camera.h
src/TransformationNode.cpp
include/TransformationNode.h
src/Observable.cpp
include/Observable.h
include/Observer.h
include/Material.h
src/Material.cpp
src/light/ILight.cpp
include/light/ILight.h
src/light/PointLight.cpp
include/light/PointLight.h
src/light/DirectionalLight.cpp
include/light/DirectionalLight.h
src/light/SpotLight.cpp
include/light/SpotLight.h
src/Options.cpp
src/environment/IEnvironment.cpp
include/environment/IEnvironment.h
src/environment/CubicEnvironment.cpp
include/environment/CubicEnvironment.h
src/Texture.cpp
include/Texture.h
include/postprocessor/IPostProcessor.h
src/postprocessor/BlurPostProcessor.cpp
include/postprocessor/BlurPostProcessor.h
src/postprocessor/BloomPostProcessor.cpp
include/postprocessor/BloomPostProcessor.h
src/postprocessor/SSAOPostProcessor.cpp
include/postprocessor/SSAOPostProcessor.h
src/BoundingInfo.cpp
include/BoundingInfo.h)
target_compile_definitions(engine PRIVATE SHADER_DIRECTORY="${PROJECT_SOURCE_DIR}/src/shaders")
target_compile_definitions(engine PRIVATE RESOURCES_DIRECTORY="${PROJECT_SOURCE_DIR}/resources")
target_include_directories(engine PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_include_directories(engine PRIVATE ${PROJECT_SOURCE_DIR}/dependencies/GLAD/include)
target_include_directories(engine PRIVATE ${PROJECT_SOURCE_DIR}/dependencies/STB/include)
target_link_libraries(engine PRIVATE glfw)
target_link_libraries(engine PRIVATE glm::glm)
target_link_libraries(engine PRIVATE assimp::assimp)