-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
62 lines (49 loc) · 1.12 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
# Copyright (C) 2017-2018 by Godlike
# This code is licensed under the MIT license (MIT)
# (http://opensource.org/licenses/MIT)
cmake_minimum_required (VERSION 3.1)
project(Ray)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
set(RAY_ROOT
${PROJECT_SOURCE_DIR}
)
set(RAY_INCLUDE_DIR
${RAY_ROOT}/include
)
include_directories (
${RAY_INCLUDE_DIR}
)
#dependencies (glfw, glbindings, imgui)
add_subdirectory(dependencies)
#IMGUI
include(ImguiConfig)
include_directories(${IMGUI_INCLUDE_DIR})
#STB
include(StbConfig)
include_directories(${STB_INCLUDE_DIR})
set(DEMO_HEADERS
include/Collision.hpp
include/Definitions.hpp
include/Gl.hpp
include/Globals.hpp
include/IOHelpers.hpp
include/Math.hpp
include/Random.hpp
include/Renderer.hpp
include/SceneGenerators.hpp
include/SingleThreadPathTracer.hpp
include/TaskBasedPathTracer.hpp
)
set(DEMO_SOURCES
Main.cpp
)
add_executable (${PROJECT_NAME}
${DEMO_SOURCES}
${DEMO_HEADERS}
)
target_link_libraries(${PROJECT_NAME}
Ray_dependencies
)
target_compile_features(${PROJECT_NAME}
PRIVATE cxx_std_17
)