Aethelflaed / minesweeper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minesweeper

This repositoy hosts the ongoing development of a minesweeper program, created for educational and fun purpose.

Comments and contributions are welcome.

Build minesweeper

Minesweeper build system uses conan for dependencies management and CMake for the actual build.

As such, to properly build the system, you should:

# Install conan files
rm -rf build
mkdir build && cd build
conan install ..

# Run cmake
cmake -S ..

# Actual make
make

The actual minesweeper program will be in the build/bin/ directory.

Testing

The build should by default happen with CMAKE_BUILD_TYPE to Debug, enabling testing.

This will create the different tests executables under build/bin/test/.

You can run make test to run the tests.

Additionnaly, you can set the CTEST_OUTPUT_ON_FAILURE environment variable to let CTest output what happened if a test fails.

Additionnaly, if lcov is found, make coverage runs the tests and provides a coverage report in coverage/

About

License:MIT License


Languages

Language:C++ 53.6%Language:CMake 46.4%