-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
32 lines (26 loc) · 922 Bytes
/
Copy pathpremake5.lua
File metadata and controls
32 lines (26 loc) · 922 Bytes
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
-- premake5.lua
solution "Fountain"
configurations { "Debug", "Release" }
-- A project defines one build target
project "Fountain"
kind "ConsoleApp"
language "C++"
files { "src/*.cpp" }
buildoptions "-std=c++11"
configuration { "windows" }
libdirs { "lib" }
includedirs { "include", "src" }
links { "FreeGLUT", "glu32", "opengl32", "FreeImage"}
configuration { "macosx" }
includedirs { "src" }
linkoptions { "-framework Carbon -framework OpenGL -framework GLUT" }
links { "FreeImage" }
configuration { "not windows", "not macosx" }
includedirs { "src" }
links { "X11", "GL", "GLU", "glut", "freeimage" }
configuration "Debug"
defines { "DEBUG" } -- -DDEBUG
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" } -- -NDEBUG
flags { "Optimize" }