-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (67 loc) · 2.3 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
cmake_minimum_required(VERSION 3.4)
project(raytracer)
#set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
src/types/color.cpp
src/types/color.h
src/entities/lights/lightOmni.cpp
src/entities/lights/lightOmni.h
src/raytracer.cpp
src/types/vector3.cpp
src/entities/objects/sphereGenerator.cpp
src/entities/objects/sphereGenerator.h
src/types/vector3.h
src/types/triple.cpp
src/types/triple.h
src/entities/objects/sphere.h
src/entities/objects/sphere.cpp
src/render/ray.h
src/render/ray.cpp
src/frontend/display.cpp
src/frontend/display.h
src/render/render.cpp
src/render/render.h
src/render/sampler.cpp
src/render/sampler.h
src/utils/debounce.cpp
src/utils/debounce.h
src/entities/objects/object.h
src/scenes/plain.h
src/entities/objects/object.cpp
src/entities/objects/materials.h
src/entities/objects/materials.cpp
src/entities/entity.h
src/entities/entity.cpp
src/scenes/scene.h
src/scenes/scene.cpp
src/scenes/plain.cpp
src/entities/lights/lightOmniGenerator.h
src/entities/lights/lightOmniGenerator.cpp
src/scenes/dof.h
src/scenes/dof.cpp
src/scenes/mandelbrot.h
src/scenes/mandelbrot.cpp
src/scenes/lights.h
src/scenes/lights.cpp
src/scenes/large.h
src/scenes/large.cpp
src/scenes/large2.h
src/scenes/large2.cpp
src/utils/utils.h
src/utils/utils.cpp
src/entities/camera.h
src/entities/camera.cpp
src/entities/objects/objectGenerator.cpp
src/entities/objects/objectGenerator.h
src/scenes/sceneGenerator.cpp
src/scenes/sceneGenerator.h
src/entities/lights/light.cpp
src/entities/lights/light.h
src/entities/lights/lightGenerator.cpp
src/entities/lights/lightGenerator.h
src/render/settings.h)
add_executable(raytracer ${SOURCE_FILES} src/types/triple.cpp src/types/triple.h)
target_link_libraries(raytracer sfml-graphics sfml-window sfml-system Threads::Threads)