Giter Site home page Giter Site logo

sfml_sortingalgs's Introduction

sfml_cmake_skeleton

Skeleton project folder for building SFML-project with CMake

How to build?

You need CMake. Install it for command line atleast. If you are not sure if you have it: cmake --version

After installing CMake follow steps 1-7

  1. Clone project or download Zip-file and unzip it
  2. Open terminal inside of the project
  3. mkdir build - to make "build" directory inside of project folder
  4. cd ./build - go inside of "build" folder
  5. cmake ./../' - to link files
  6. make - to build project
  7. ./a - to display output

How to use?

If you are new to CMake don't worry so am I. I made this for myself so it will be easy to copy this for new project and be ready to go without additional hassle.

  • In project folder you will find "CMakeLists.txt". Don't rename it and don't move it if you don't know what you are doing.
  • Add your ".cpp"-files here: set(SOURCES src/main.cpp 'here'). Don't forget "src/".
  • Create your header files (".h/.hpp")-files inside of src folder. If you want to put them into different folder just modify this line: include_directories(your_include_folder_name)
  • If your project uses additional files like images or fonts keep them in "res" folder. and add this line for each additional file configure_file(res/filename.extension filename.extension COPYONLY)

Not working?

If you have renamed your project folder after building the project try this:

  • Delete everything inside of "build" folder. Do steps 5-7 again inside of empty "build" folder.

Additional info

sfml_sortingalgs's People

Contributors

lutrarutra avatar

Stargazers

Jayesh Rathi avatar  avatar Imran H. avatar Eljas Hyyrynen avatar Jerdik avatar Antonio Sanchez avatar Vinod Menon avatar Jonas Habel avatar

sfml_sortingalgs's Issues

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.