We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9834362 commit aed4037Copy full SHA for aed4037
CMakeLists.txt
@@ -1,16 +1,16 @@
1
cmake_minimum_required(VERSION 3.28)
2
project(raytracer CXX)
3
4
+include(FetchContent)
5
+FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL)
6
+FetchContent_MakeAvailable(SFML)
7
+
8
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
9
add_compile_options(-Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast -ffast-math)
10
elseif(MSVC)
11
add_compile_options(/WX /W4 /permissive-)
12
endif()
13
-include(FetchContent)
-FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git SYSTEM EXCLUDE_FROM_ALL)
-FetchContent_MakeAvailable(SFML)
-
14
add_executable(raytracer
15
src/Camera.cpp
16
src/Hittable.cpp
0 commit comments