-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (41 loc) · 847 Bytes
/
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
#---------------------------------------------------------------------------------------------------
# CMake Build Configuration for the Raytracer
#
cmake_minimum_required ( VERSION 3.1.0 )
project ( RayTracer
VERSION 3.0.0
LANGUAGES CXX
)
# Set to c++11
set ( CMAKE_CXX_STANDARD 11 )
# Set Flags
set (CMAKE_CXX_FLAGS "-Wall -pthread")
# Source
set ( RAY
# External header files
src/external/ThreadPool.h
src/external/stb_image.h
# Project header files
src/aabb.h
src/aarect.h
src/box.h
src/bvh.h
src/camera.h
src/color.h
src/constant_medium.h
src/hittable.h
src/hittable_list.h
src/main.h
src/material.h
src/moving_sphere.h
src/perlin.h
src/r_stb_image.h
src/ray.h
src/sphere.h
src/texture.h
src/vec3.h
# Main cpp file
src/main.cpp
)
# Executables
add_executable(raytracer ${RAY})