-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
36 lines (25 loc) · 880 Bytes
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
workspace "SDLGame"
platforms { "Windows" }
configurations { "Debug", "Release" }
flags "MultiProcessorCompile"
project "SDLGame"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "bin/%{cfg.system}-%{cfg.buildcfg}/%{cfg.architecture}"
objdir "bin-int/%{cfg.system}-%{cfg.buildcfg}/%{cfg.architecture}"
files { "src/**.cpp", "include/**.h", }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "platforms:Windows"
system "Windows"
architecture "x86_64"
filter "system:windows"
system "Windows"
includedirs { <SDL2 INCLUDE PATH> }
libdirs { <SDL2 x64 LIB PATH> }
links { "SDL2main", "SDL2" }