Skip to content

nhtranngoc/yart

Repository files navigation

Yet Another Ray Tracer (YART)

Build Status

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.

Build Instructions

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.

References

https://r4nd0m6uy.ch/cmake-and-cpputest.html

About

Yet Another Ray Tracer - a Ray Tracer Challenge implementation in C++ ft. CppuTest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published