-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
83 lines (73 loc) · 2 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
74
75
76
77
78
79
80
81
82
83
cmake_minimum_required(VERSION 3.10)
project(lajolla)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
if(MSVC)
add_compile_options(/Wall /Wno-unknown-pragmas)
else()
add_compile_options(-Wall -Wno-unknown-pragmas)
endif()
include_directories(${CMAKE_SOURCE_DIR}/src)
set(SRCS src/3rdparty/miniz.h
src/3rdparty/miniz.c
src/3rdparty/pugiconfig.hpp
src/3rdparty/pugixml.hpp
src/3rdparty/pugixml.cpp
src/3rdparty/stb_image.h
src/3rdparty/tinyexr.h
src/3rdparty/tinyply.h
src/compute_normals.h
src/flexception.h
src/hw1.h
src/hw1_scenes.h
src/hw2.h
src/hw3.h
src/hw4.h
src/image.h
src/matrix.h
src/parallel.h
src/parse_obj.h
src/parse_ply.h
src/parse_scene.h
src/parse_serialized.h
src/print_scene.h
src/torrey.h
src/transform.h
src/vector.h
src/ray.h
src/pcg.h
src/Scene.h
src/material.h
src/BVH_node.h
src/helper.h
src/all_utils.h
src/Hit_Record.h
src/compute_radiance.h
src/compute_normals.cpp
src/hw1.cpp
src/hw2.cpp
src/hw2_helper.cpp
src/hw3.cpp
src/hw4.cpp
src/image.cpp
src/main.cpp
src/parallel.cpp
src/parse_obj.cpp
src/parse_ply.cpp
src/parse_scene.cpp
src/parse_serialized.cpp
src/print_scene.cpp
src/transform.cpp
src/Scene.cpp
src/BVH_node.cpp
src/helper.cpp
src/compute_radiance.cpp
)
add_library(torrey_lib STATIC ${SRCS})
add_executable(torrey src/main.cpp)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(torrey Threads::Threads)
target_link_libraries(torrey torrey_lib)