-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake4.lua
72 lines (60 loc) · 1.36 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
71
72
#!lua
-- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++"
includeDirList = {
"../shared",
"../shared/include",
"../shared/gl3w",
"../shared/imgui"
}
libDirectories = {
"../lib"
}
if os.get() == "macosx" then
linkLibs = {
"cs488-framework",
"imgui",
"glfw3"
}
end
if os.get() == "linux" then
linkLibs = {
"cs488-framework",
"imgui",
"glfw3",
"GL",
"Xinerama",
"Xcursor",
"Xxf86vm",
"Xi",
"Xrandr",
"X11",
"stdc++",
"dl",
"pthread"
}
end
-- Build Options:
if os.get() == "macosx" then
linkOptionList = { "-framework IOKit", "-framework Cocoa", "-framework CoreVideo", "-framework OpenGL" }
end
buildOptions = {"-std=c++11 -fopenmp"}
solution "CS488-Projects"
configurations { "Debug", "Release" }
project "A1"
kind "ConsoleApp"
language "C++"
location "build"
objdir "build"
targetdir "."
buildoptions (buildOptions)
libdirs (libDirectories)
links (linkLibs)
linkoptions (linkOptionList)
includedirs (includeDirList)
files { "*.cpp" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }