-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (32 loc) · 1.38 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
cmake_minimum_required(VERSION 3.8)
project(raytracer)
#IMPORTANT COMPILING DIRECTIVES
# 1
# Enable this when you start working on your solution and you add the file RayTracer.h
# in the src folder; Without this file the code base will not compile therefore in your
# code this define is disabled
# Also do not forget to create the src folder under code
add_compile_options(-DSTUDENT_SOLUTION)
# 2
# This define is used by the teaching team to compile and run the official solution
# Students: for your project this define should always be commented out
# If we commit it by mistake please disable it and let us know
#add_compile_options(-DCOURSE_SOLUTION)
# When testing large scenes the debug mode will be very slow
# so switch to release
#set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_STANDARD 14)
# Configure eigen3 for pipeline
set(ENV{EIGEN3_ROOT} /usr/include/eigen3/Eigen)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
# Configure eigen3 for local machine
include_directories(/usr/include/eigen3)
# These folders include some important header files including the header files for your own solution
include_directories(src/)
include_directories(external/)
#internal includes
aux_source_directory(external SOURCE)
aux_source_directory(src SOURCE)
add_executable(raytracer main.cpp ${SOURCE}) #The name of the cpp file and its path can vary