Code Monkey home page Code Monkey logo

skeleton's Introduction

๐Ÿฆด SFML skeleton

Release Language Size Open Source


This repository is a skeleton C++ project.



๐Ÿ“‹ Summary


๐Ÿ› ๏ธ Install

I recommend using VS Code.


๐ŸชŸ Windows

What you need

How to compile it?

  • Visual Studio (recommended) :

    • Run the vs32_run.bat (for 32 bits) or the vs64_run.bat (for 64 bits) to create the project

    • Then run the file in .sln in the build folder

(Run the .bat file again each time you add or remove a file)

  • MinGW (not recommended) :

    • Open a terminal in the project root and type : .\mingw_run.bat to create and compile the project

    • Then type : .\build\App.exe to run the program (or something else if you changed the name)

(Type the first command when you want to compile and the second when you want to run the program)


๐Ÿง Unix

What you need

The easiest way is to open a terminal and type : sudo apt update and sudo apt upgrade, then type :

  • For Linux : sudo apt install gcc g++ make cmake gdb

  • For MacOS : sudo apt install clang clang++ make cmake lldb

How to compile it?

  • Open a terminal in the project root and type : bash unix_run.sh to create and compile the project

  • Then type : ./build/App to run the program (or something else if you changed the name)

(Type the first command when you want to compile and the second when you want to run the program)


๐Ÿ’Ž Using VS Code (recommended)

What you need

How to compile it?

  • Ctrl + Shift + P and type "scan for kits", then choose you compiler (I recommend the Visual Studio compiler for Windows)

  • Choose "debug" or "release" at the bottom

  • Go to "Preferences", then "Settings" and type "cmake debug", then clic on "Edit in settings.json" that will open the settings.json file

  • Add this at this end (don't forget the comma on the previous element) :

     "cmake.debugConfig": {
     	"cwd": "${workspaceFolder}"
     }
  • If there is a build folder, delete it and reload VS Code

  • Wait until the CMakeLists.txt runs or choose again "debug" or "release" at the bottom

(Choose "debug" or "release" again each time you add or remove a file and clic on the play button at the bottom to compile and run the program)


๐Ÿ™ Credits

skeleton's People

Contributors

angeluriot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.