git clone --recurse-submodules https://github.com/mskcode/asteroids.git
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.
cd submodules
git submodule add <repository_url>
Add the newly added submodule to CMakeLists.txt
file in this root directory.
- Some kind of logging setup would be nice.