Skip to content
Snippets Groups Projects

NI-ADP

This project is using cpp_starter_project as basic project setup and find SDL2 scripts to find SDL2 packages. For text rendering I am using Ubuntu font family.

Dependencies

Required:

  • C++ compiler - GCC recomended
  • SDL2 - rendering and input handeling
  • CMake - for project compilation
  • Conan - for downloading extra libs

Extra:

  • Doxygen (for documentation) - not neededd for game compilation
  • libasan (for memory debugging) - must be turned on in cmake/Sanitizers.cmake
  • cppcheck - must be turned on in cmake/StaticAnalyzers.cmake

Compilation

First you need to generate Makefile using cmake.

mkdir build
cd build
cmake ..

Game

To compile:

make shooter

To run:

cd bin
./shooter

Please run the game from bin directory.

Documentation

To compile:

make doxygen-docs

Documentation is then generated into build/html folder.

Tests

TODO