riley-harper / RayTracer

Code for a raytracer that I built in spring 2021, along with example images!
0 stars 0 forks source link

[#69] Add a BUILD_TESTS option to CMake #71

Closed riley-harper closed 3 years ago

riley-harper commented 3 years ago

Fixes #69.

Adds a BUILD_TESTS option to CMake. This defaults to OFF. If it's set to ON, then tests are compiled with the main program. If it's set to OFF, then tests are ignored, and Catch2 isn't required.

From the command line, this option can be turned on with -DBUILD_TESTS=ON.