-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (45 loc) · 1.01 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
cmake_minimum_required(VERSION 3.16)
project(Tracer LANGUAGES CXX C)
include(dep/glm.cmake)
include(dep/spdlog.cmake)
include(dep/tinyobjloader.cmake)
file(
GLOB
SRCS
src/main.cpp
src/core/*.hpp
src/core/*.cpp
src/renderer/*.hpp
src/renderer/*.cpp
src/utility/*.hpp
src/utility/*.cpp
src/factory/*.hpp
src/factory/*.cpp
src/filter/*.cpp
src/camera/*.cpp
src/shape/*cpp
src/texture/*.cpp
src/material/*.cpp
src/light/*.cpp
src/accelerator/*.cpp
src/material/bxdf/*.cpp
src/material/bssrdf/*.cpp
src/material/utility/*.cpp
src/post_processor/*.cpp
src/medium/*.cpp
)
add_executable(Tracer ${SRCS})
target_compile_features(Tracer PRIVATE cxx_std_20)
target_include_directories(
Tracer
PRIVATE
src
dep
)
target_link_libraries(
Tracer
PRIVATE
glm::glm
spdlog::spdlog
tinyobjloader
)