-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (29 loc) · 901 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (29 loc) · 901 Bytes
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
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(raytracer C CXX)
set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES
raytracer/Camera.h
raytracer/CheckerTexture.h
raytracer/ConstantTexture.h
raytracer/Dielectric.h
raytracer/HitRecord.h
raytracer/Lambertian.h
raytracer/Material.h
raytracer/Math.h
raytracer/Math.cpp
raytracer/Metal.h
raytracer/MovingSphere.h
raytracer/Ray.h
raytracer/ScatterRecord.h
raytracer/Sphere.h
raytracer/Surface.h
raytracer/SurfaceGroup.h
raytracer/Texture.h
raytracer/Vector3.h
raytracer/main.cpp
)
add_executable(raytracer ${SOURCE_FILES})
if(MSVC)
target_compile_options(raytracer PRIVATE /std:c++latest)
set_target_properties(raytracer PROPERTIES COMPILE_DEFINITIONS "_USE_MATH_DEFINES=1")
endif()