Skip to content

Instantly share code, notes, and snippets.

@donalmacc
Created March 17, 2014 02:52
Show Gist options
  • Save donalmacc/9593147 to your computer and use it in GitHub Desktop.
Save donalmacc/9593147 to your computer and use it in GitHub Desktop.
Simple Premake4 script that gets my SDL2 and glew libraries and creates a project.
-- Simple Premake script to get all C/C++ files
solution "SolutionName"
configurations { "Debug", "Release" }
project "ProjectName"
kind "ConsoleApp"
language "C++"
files { "**.h", "**.cpp"}
links{ "SDL2", "glew32", "glew32s"}
libdirs { "C:/Source/SDL2/lib/x86", "C:/Source/glew/lib/Release/Win32" }
includedirs { "C:/Source/SDL2/include/", "C:/Source/glew/include", "C:/Source/glm" }
flags { "WinMain" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment