From aed4037c14c101f9be940a8d1dce637b9be6444c Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 4 Dec 2024 17:32:11 -0700 Subject: [PATCH] Update to latest SFML 3 API --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0123255..6636ac9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,16 +1,16 @@ cmake_minimum_required(VERSION 3.28) project(raytracer CXX) +include(FetchContent) +FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL) +FetchContent_MakeAvailable(SFML) + if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") add_compile_options(-Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast -ffast-math) elseif(MSVC) add_compile_options(/WX /W4 /permissive-) endif() -include(FetchContent) -FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL) -FetchContent_MakeAvailable(SFML) - add_executable(raytracer src/Camera.cpp src/Hittable.cpp