-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (31 loc) · 936 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
#
cmake_minimum_required(VERSION 3.0)
project("RayTracer")
set(RAY_TRACER_NAME "RayTracer")
set(RAY_TRACER_EXE "RayTracer")
set(RAY_TRACER_FILES )
set(RAY_TRACER_INCLUDES
source
)
include(cmake/Main.cmake)
include(cmake/Common.cmake)
include(cmake/Math.cmake)
include(cmake/Scene.cmake)
include(cmake/FrameBuffer.cmake)
include(cmake/Acceleration.cmake)
include(cmake/Geometry.cmake)
include_directories(${RAY_TRACER_INCLUDES})
add_executable(${RAY_TRACER_EXE} ${RAY_TRACER_FILES})
if (MSVC)
foreach(source IN LISTS RAY_TRACER_FILES)
get_filename_component(source_path "${source}" PATH)
string(REPLACE "/" "\\" source_path_msvc "${source_path}")
source_group("${source_path_msvc}" FILES "${source}")
endforeach()
endif()
# Visual Studio organization. For Good purposes.
if (WIN32)
set_property(TARGET ${RAY_TRACER_EXE}
PROPERTY
FOLDER ${RAY_TRACER_EXE})
endif()