|
| 1 | +solution "objview" |
| 2 | + -- location ( "build" ) |
| 3 | + configurations { "Debug", "Release" } |
| 4 | + platforms {"native", "x64", "x32"} |
| 5 | + |
| 6 | + project "objview" |
| 7 | + |
| 8 | + kind "ConsoleApp" |
| 9 | + language "C++" |
| 10 | + files { "viewer.cc", "trackball.cc" } |
| 11 | + includedirs { "./" } |
| 12 | + includedirs { "../../" } |
| 13 | + |
| 14 | + configuration { "linux" } |
| 15 | + linkoptions { "`pkg-config --libs glfw3`" } |
| 16 | + links { "GL", "GLU", "m", "GLEW", "X11", "Xrandr", "Xinerama", "Xi", "Xxf86vm", "Xcursor", "dl" } |
| 17 | + |
| 18 | + configuration { "windows" } |
| 19 | + -- Path to GLFW3 |
| 20 | + includedirs { '../../../../local/glfw-3.1.2.bin.WIN64/include' } |
| 21 | + libdirs { '../../../../local/glfw-3.1.2.bin.WIN64/lib-vc2013' } |
| 22 | + -- Path to GLEW |
| 23 | + includedirs { '../../../../local/glew-1.13.0/include' } |
| 24 | + libdirs { '../../../../local/glew-1.13.0/lib/Release/x64' } |
| 25 | + |
| 26 | + links { "glfw3", "glew32", "gdi32", "winmm", "user32", "glu32","opengl32", "kernel32" } |
| 27 | + defines { "_CRT_SECURE_NO_WARNINGS" } |
| 28 | + |
| 29 | + configuration { "macosx" } |
| 30 | + includedirs { "/usr/local/include" } |
| 31 | + buildoptions { "-Wno-deprecated-declarations" } |
| 32 | + libdirs { "/usr/local/lib" } |
| 33 | + links { "glfw3", "GLEW" } |
| 34 | + linkoptions { "-framework OpenGL", "-framework Cocoa", "-framework IOKit", "-framework CoreVideo" } |
| 35 | + |
| 36 | + configuration "Debug" |
| 37 | + defines { "DEBUG" } |
| 38 | + flags { "Symbols", "ExtraWarnings"} |
| 39 | + |
| 40 | + configuration "Release" |
| 41 | + defines { "NDEBUG" } |
| 42 | + flags { "Optimize", "ExtraWarnings"} |
| 43 | + |
0 commit comments