aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-12 18:48:40 +0100
committerJulian T <julian@jtle.dk>2021-01-12 18:48:40 +0100
commit8251be3e7ec0e381391c951fd4c8f1ab8080bef9 (patch)
tree8caaf285d59fadb3fb4ce6f3a4c9e1d956d8e21e /CMakeLists.txt
parent0f9e88ccf0510ab4d830529fa539ef6db715f988 (diff)
Reorgranize source file structure
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index df9bd70..7ae5197 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.13)
project(pathtracing)
@@ -15,7 +15,14 @@ set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
FILE(GLOB app_sources ${CMAKE_SOURCE_DIR}/app/*.cpp)
-FILE(GLOB sources ${CMAKE_SOURCE_DIR}/src/*.cpp)
+SET(sources
+ src/core/ray.cpp
+ src/core/vector.cpp
+ src/object.cpp
+ src/render.cpp
+ src/scene.cpp
+ )
+list(TRANSFORM sources PREPEND ${CMAKE_SOURCE_DIR}/)
FILE(GLOB test_sources ${CMAKE_SOURCE_DIR}/test/*.cpp)
add_executable(pathtracing ${sources} ${app_sources})