Just a side project to learn more SDL2, and because I like minesweeper. I'm basing it off of Minesweeper - The Clean One.
Made with the sole purpose of learning.
- CMake
>= 3.28
- SDL (x64)
>= 2.30.5
- SDL_image
>= 2.8.2
- SDL_ttf
>= 2.22.0
Notes (Windows only):
- SDL files must be in the directory
C:/SDL2/x64
. If you have SDL installed in a different directory, change the variableSDL2_PATH
inCMakeLists.txt
file to your installation directory. - Make sure to copy all the binaries (
.dll
) into theCMAKE_CURRENT_BINARY_DIR
directory.
Replace CMAKE_CURRENT_BINARY_DIR
with its value.
cmake --build CMAKE_CURRENT_BINARY_DIR --target minesweeper -j 10
Just open the CMAKE_CURRENT_BINARY_DIR/minesweeper.exe
executable.