Skip to content

Tutorial: Create an empty project using premake5

Matteo Galeotti edited this page Sep 30, 2019 · 4 revisions

This guide aims to help you easily create an empty SFML project using premake5.

Prerequisites:

How to

You have to setup your directories like this:

Put under dependencies your SFML folder ( without the version ). It will lookup for SFML/include and SFML/lib directories only.

Put a symbolic main.cpp under src directory ( Use this or whatever you like )

Now just:

premake5 vs2019 ( if you are using visual studio 2019, otherwise the complete list is here)

And under the new generated folder build you will find your project ready to go.

FAQ

  • Getting strange link errors on visual studio 2017

It happens that it will take the wrong version of the Windows' SDK, add the following to premake script:

filter "system:Windows" systemversion "latest"

or do it manually selecting the latest under Project's Properties -> Configuration Properties/General

Clone this wiki locally