Miretz / my_sfml_template

Cross-platform template for my SFML projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my_sfml_template

My cross-platform template for SFML projects

My setup

I use Visual Studio Code with the following extensions:

After installing these extensions, simply clone this repository and open the folder in VSCode. CMake Tools should recognize the project. Copy the compile_commands.json file from build/ to the parent directory.

Now you can use the following commands:

  • CMake: Build - to build the executable (do this first)
  • CMake: Run Without Debugging - to run the executable (shortcut Shift+F5)
  • CMake: Debug - to run the project with debugging (shortcut Ctrl+F5)

If all goes well, you should see the "game" in action.


Tested on:

  • Windows 10 with MinGW, Clang & Visual Studio 2022
  • MacOS with GCC & Clang

About

Cross-platform template for my SFML projects

License:MIT License


Languages

Language:C++ 85.5%Language:CMake 11.5%Language:GLSL 3.0%