-
Notifications
You must be signed in to change notification settings - Fork 17
/
premake4.lua
72 lines (63 loc) · 1.32 KB
/
premake4.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
63
64
65
66
67
68
69
70
solution "OpenGL"
configurations {
"debug",
"release"
}
platforms { "x64", "x32" }
-- ---------------------------------------------------------
-- Project
project "demo"
basedir "./"
language "C++"
location "./"
kind "ConsoleApp" -- Shouldn't this be in configuration section ?
files { "*.hpp", "*.cpp" }
files { "core/*.cpp" }
includedirs {
"include",
"core"
}
objdir "obj"
-- Debug configurations
configuration {"debug"}
defines {"DEBUG"}
flags {"Symbols", "ExtraWarnings"}
-- Release configurations
configuration {"release"}
defines {"NDEBUG"}
flags {"Optimize"}
-- Linux x86 platform gmake
configuration {"linux", "gmake", "x32"}
linkoptions {
"-Wl,-rpath,./lib/linux/lin32 -L./lib/linux/lin32 -lGLEW -lglut -lAntTweakBar"
}
libdirs {
"lib/linux/lin32"
}
-- Linux x64 platform gmake
configuration {"linux", "gmake", "x64"}
linkoptions {
"-Wl,-rpath,./lib/linux/lin64 -L./lib/linux/lin64 -lGLEW -lglut -lAntTweakBar -lGL"
}
libdirs {
"./lib/linux/lin64"
}
-- Visual x86
configuration {"vs2010", "x32"}
libdirs {
"lib/windows/win32"
}
links {
"glew32s",
"freeglut",
"AntTweakBar"
}
---- Visual x64
-- configuration {"vs2010", "x64"}
-- links {
-- "glew32s",
-- "freeglut",
-- }
-- libdirs {
-- "lib/windows/win64"
-- }