-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
62 lines (55 loc) · 1.4 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
cmake_minimum_required(VERSION 3.0)
set (CMAKE_CXX_STANDARD 20)
# Notre projet est étiqueté hello
project(raytracer)
include_directories(${CMAKE_SOURCE_DIR})
# Crée des variables avec les fichiers à compiler
set(SRCS
main.cpp
utils/blob.cpp
utils/camera.cpp
utils/image.cpp
utils/materials/cartoon.cpp
utils/textures/checkeredSphere.cpp
utils/materials/phong.cpp
utils/textures/uvSphere.cpp
utils/object_loader.cpp
utils/objects/aabb.cpp
utils/objects/sphere.cpp
utils/objects/triangle.cpp
utils/ray.cpp
utils/scene.cpp
utils/textures/aabb_texture.cpp
utils/vector.cpp
)
set(HEADERS
tinyobjloader/tiny_obj_loader.h
utils/blob.h
utils/camera.h
utils/color.h
utils/image.h
utils/intersection.h
utils/libs/stb_image.h
utils/light.h
utils/material.h
utils/materials/cartoon.h
utils/textures/checkeredSphere.h
utils/materials/phong.h
utils/textures/sphereUtils.h
utils/textures/uvSphere.h
utils/object.h
utils/object_loader.h
utils/objects/aabb.h
utils/objects/sphere.h
utils/objects/triangle.h
utils/point.h
utils/ray.h
utils/scene.h
utils/texture.h
utils/textures/aabb_texture.h
utils/textures/uniform_texture.h
utils/vector.h
)
add_compile_options(-g -O3 -march=native)
add_link_options(-pthread)
add_executable(raytracer ${SRCS} ${HEADERS})