/
premake4.lua
39 lines (31 loc) · 984 Bytes
/
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
solution "01_project_skeleton"
location("./")
targetdir("./bin")
configurations { "debug", "release" }
objdir("obj/" .. os.get() .. "/")
project "01_project_skeleton-app"
kind "ConsoleApp"
language "C++"
files { "source/*.cpp" }
configuration "windows"
links {"glu32", "opengl32", "gdi32", "winmm", "user32","GLEW"}
configuration "linux"
links {"GL","glfw","GLEW"}
configuration "macosx"
links {"GL","glfw","GLEW", "CoreFoundation.framework"}
libdirs {"/opt/local/lib"}
includedirs {"/opt/local/include"}
configuration "haiku"
links {"GL","glfw","GLEW"}
configuration "freebsd"
links {"GL","glfw","GLEW"}
configuration "debug"
defines { "DEBUG" }
flags { "Symbols" }
buildoptions{ "-Wall" }
targetname "01_project_skeleton-debug"
configuration "release"
defines { "NDEBUG" }
flags { "Optimize" }
buildoptions{ "-Wall" }
targetname "01_project_skeleton-release"