aboutsummaryrefslogtreecommitdiff
path: root/examples/viewer/premake4.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/viewer/premake4.lua')
-rw-r--r--examples/viewer/premake4.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/viewer/premake4.lua b/examples/viewer/premake4.lua
new file mode 100644
index 0000000..4e1e54f
--- /dev/null
+++ b/examples/viewer/premake4.lua
@@ -0,0 +1,44 @@
+solution "objview"
+ -- location ( "build" )
+ configurations { "Release", "Debug" }
+ platforms {"native", "x64", "x32"}
+
+ project "objview"
+
+ kind "ConsoleApp"
+ language "C++"
+ files { "viewer.cc", "trackball.cc" }
+ includedirs { "./" }
+ includedirs { "../../" }
+
+ configuration { "linux" }
+ linkoptions { "`pkg-config --libs glfw3`" }
+ links { "GL", "GLU", "m", "GLEW", "X11", "Xrandr", "Xinerama", "Xi", "Xxf86vm", "Xcursor", "dl" }
+ linkoptions { "-pthread" }
+
+ configuration { "windows" }
+ -- Path to GLFW3
+ includedirs { '../../../../local/glfw-3.1.2.bin.WIN64/include' }
+ libdirs { '../../../../local/glfw-3.1.2.bin.WIN64/lib-vc2013' }
+ -- Path to GLEW
+ includedirs { '../../../../local/glew-1.13.0/include' }
+ libdirs { '../../../../local/glew-1.13.0/lib/Release/x64' }
+
+ links { "glfw3", "glew32", "gdi32", "winmm", "user32", "glu32","opengl32", "kernel32" }
+ defines { "_CRT_SECURE_NO_WARNINGS" }
+
+ configuration { "macosx" }
+ includedirs { "/usr/local/include" }
+ buildoptions { "-Wno-deprecated-declarations" }
+ libdirs { "/usr/local/lib" }
+ links { "glfw3", "GLEW" }
+ linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" }
+
+ configuration "Debug"
+ defines { "DEBUG" }
+ flags { "Symbols", "ExtraWarnings"}
+
+ configuration "Release"
+ defines { "NDEBUG" }
+ flags { "Optimize", "ExtraWarnings"}
+