-
Notifications
You must be signed in to change notification settings - Fork 13
/
premake.lua
62 lines (47 loc) · 974 Bytes
/
premake.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
workspace "PatBoy"
configurations { "Debug", "Release" }
platforms { "Win64" }
location "generated"
objdir "temp/%{cfg.platform}_%{cfg.buildcfg}"
filter { "platforms:Win64" }
system "Windows"
architecture "x86_64"
-- EXTERNAL LIBRARIES
include "libs/SDL2/premake.lua"
include "libs/glfw/premake.lua"
-- PATBOY PROJECT
project "patboy"
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
links { "sdl2", "glew32", "glut32", "glfw", "OpenGL32" }
libdirs
{
"libs/glew/lib"
}
includedirs
{
"libs/SDL2/include",
"libs/glew/include",
"libs/glfw/include"
}
files
{
"src/**.h",
"src/**.cpp"
}
defines
{
"GLUT_BUILDING_LIB"
}
filter "configurations.Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations.Release"
defines { "RELEASE" }
optimize "On"
filter "system:Windows"
postbuildcommands
{
"{COPYFILE} ..\\libs\\glew\\lib\\glew32.dll ..\\bin\\%{cfg.buildcfg}\\glew32.dll"
}