Inspired by "The Ray Tracer Challenge", a book by Jamis Buck, I set out to build a ray tracer in C++ as an attempt to transition from C and practicing test-driven development.
As with YACE, I will continue to use CMake as a build system and CppUTest as a testing framework.
Before running CMake, it is necessary to run the following commands:
export CC=path/to/arm-none-eabi-gcc
export CXX=path/to/arm-none-eabi-g++
This will set the path to the ARM cross compilers and set them to CMake cache.
cd ./build/
cmake -DCMAKE_TOOLCHAIN_FILE=../arm-none-eabi-toolchain.cmake
make
For testing, it is necessary to remove CMakeCache.txt
and CMakeFiles/
in build
folder before running cmake ..
. By omitting the toolchain file, CMake assume we are building for testing and will only compile /tests
folder.