Instructions tested on:
They can be adapted for other distributions as well.
Install the following dependencies:
To install them on:
Debian Unstable
To install all dependencies, run the following command:
To instead install only required dependencies, run the following command:
Debian 13
To install all dependencies, run the following command:
The version of Doxygen in Debian 13 is older than the recommended one, so it's best to download a build from https://www.doxygen.nl/download.html.
The bin directory of Doxygen must be placed on the PATH, to do so temporarily (for the current shell), run the following command (replace /path/to/doxygen with the path to the Doxygen install directory):
To instead install only required dependencies, run the following command:
Configure the project by running the following command:
Finally, build the project by running the following command:
This will produce the executable build/mines, as well as documentation build/html, if Doxygen was configured.
Install the following dependencies:
To install all dependencies using brew, run the following command:
To instead install only required dependencies, run:
Configure the project by running the following command:
Finally, build the project by running the following command:
This will produce the executable build/mines, as well as documentation build/html, if Doxygen was configured.
Install the following dependencies:
In the project directory, run:
Then, open the solution build\mines.sln in Visual Studio and build the project there. It will produce an executable in it's usual location.
Alternatively, to build from the command line, run:
This will produce the executable build\mines.exe, as well as documentation build\html, if Doxygen was configured.
C++ compiler with C++23 support
Minimal tested compiler versions:
CMake 3.28+
Minimal tested version: 3.31.6
Only Ninja and Visual Studio generators are currently supported.
Ninja, if using the Ninja generator in CMake
Minimal tested version: 1.12.1
GoogleTest (optional, used for unit tests)
Minimal tested version: 1.17.0
Doxygen 1.13.2+ (optional, used for documentation)
Older Doxygen versions should also work, but will not generate module-oriented documentation.
Minimal tested version: 1.15.0
The project is built with CMake. Example commands for unix platforms: