- C++ 99.1%
- CMake 0.9%
|
|
||
|---|---|---|
| .github | ||
| cmake | ||
| docs | ||
| include | ||
| scenes | ||
| src | ||
| tests | ||
| .clang-format | ||
| .clang-tidy | ||
| .gitattributes | ||
| .gitignore | ||
| CMakeLists.txt | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
another_path_tracer
Yet another path tracer
Dependencies:
- OpenMP
- OpenGL
- freeglut
- libpng
- libjpeg
- libtiff
If installing dependencies with vcpkg under windows, don't forget to add the CMake toolchain path to the cmake call:
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=C:/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
Installation:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --install .
Link with $ANOTHER_PATH_TRACER_DIR/lib
Include $ANOTHER_PATH_TRACER_DIR/include
You can add $ANOTHER_PATH_TRACER_DIR/bin to your path.
To build without OpenMP, add -DUSE_OPENMP=OFF to cmake call.
To build without OpenGL, add -DUSE_OPENGL=OFF to cmake call.
To build without PNG, add -DUSE_PNG=OFF to cmake call.
To build without JPEG, add -DUSE_JPEG=OFF to cmake call.
To build without TIFF, add -DUSE_TIFF=OFF to cmake call.
To build tests, add -DBUILD_TESTING=ON to cmake call. Then:
ctest
To generate documentation, add -DBUILD_DOC=ON to cmake call. Additional dependencies:
- Doxygen
- dot (graphviz)
- Sphinx
- Breathe (pip: breathe)
- Read the Docs Sphinx Theme (pip: sphinx_rtd_theme)
To include in a CMake project:
find_package(APTracer 1.3.1 REQUIRED)
target_link_libraries(example APTracer::APTracer)