Skip to content

Commit

Permalink
Update to latest SFML 3 API
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Dec 6, 2024
1 parent 9834362 commit aed4037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aed4037

Please sign in to comment.