From 8251be3e7ec0e381391c951fd4c8f1ab8080bef9 Mon Sep 17 00:00:00 2001 From: Julian T Date: Tue, 12 Jan 2021 18:48:40 +0100 Subject: Reorgranize source file structure --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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}) -- cgit v1.2.3