Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 897 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 897 Bytes

Asteroids clone

Development

Cloning repository

git clone --recurse-submodules https://github.com/mskcode/asteroids.git

Building binaries

The fast way to test if project builds and runs is to run build-and-run.sh with or without optional --clean parameter.

./build-and-run.sh

You can also do you by running CMake manually and go from there.

mkdir -p build/debug
cd build/debug
cmake ../.. -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
ninja

After the build completes (ninja in this case), the application executable proper (game) and unit test executable (asteroids_test) can be found from ./bin directory.

Adding Git submodules

cd submodules
git submodule add <repository_url>

Add the newly added submodule to CMakeLists.txt file in this root directory.

TODO

  • Some kind of logging setup would be nice.