fix build, add premake4.lua
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "TinyRenderer/model.h"
|
||||
#include "TinyRenderer/geometry.h"
|
||||
#include "TinyRenderer/our_gl.h"
|
||||
#include "../../Utils/b3ResourcePath.h"
|
||||
#include "../Utils/b3ResourcePath.h"
|
||||
#include "Bullet3Common/b3MinMax.h"
|
||||
|
||||
Vec3f light_dir_world(1,1,1);
|
||||
|
||||
29
examples/TinyRenderer/premake4.lua
Normal file
29
examples/TinyRenderer/premake4.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
project "App_TinyRenderer"
|
||||
|
||||
language "C++"
|
||||
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
".",
|
||||
"../../src",
|
||||
".."
|
||||
}
|
||||
|
||||
|
||||
links{ "OpenGL_Window","Bullet3Common"}
|
||||
initOpenGL()
|
||||
initGlew()
|
||||
|
||||
files {
|
||||
"*.cpp",
|
||||
"*.h",
|
||||
"../Utils/b3ResourcePath.cpp"
|
||||
}
|
||||
|
||||
if os.is("Linux") then initX11() end
|
||||
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
end
|
||||
Reference in New Issue
Block a user