ssloy / tinyraytracer

A brief computer graphics / rendering course
https://github.com/ssloy/tinyraytracer/wiki
5.05k stars 333 forks source link

avoid CMake warnings, simplify CMake script #32

Open scivision opened 1 year ago

scivision commented 1 year ago

Modernize CMake: works with all compilers tried (GCC, Clang, Visual Studio, NVIDIA HPC, Intel oneAPI). Modern CMake emits warnings for minimum version < 3.5. CMake >= 3.10 has modern OpenMP targets. Default to Release build (was not taking effect before). Add -Wall

fixes #12