Skip to content

Commit aed4037

Browse files
committed
Update to latest SFML 3 API
1 parent 9834362 commit aed4037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
cmake_minimum_required(VERSION 3.28)
22
project(raytracer CXX)
33

4+
include(FetchContent)
5+
FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL)
6+
FetchContent_MakeAvailable(SFML)
7+
48
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
59
add_compile_options(-Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast -ffast-math)
610
elseif(MSVC)
711
add_compile_options(/WX /W4 /permissive-)
812
endif()
913

10-
include(FetchContent)
11-
FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL)
12-
FetchContent_MakeAvailable(SFML)
13-
1414
add_executable(raytracer
1515
src/Camera.cpp
1616
src/Hittable.cpp

0 commit comments

Comments
 (0)