Adding premake
I will now be able to work on this from any platform
This commit is contained in:
parent
85263312cd
commit
dc89cc6173
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,3 +1,11 @@
|
||||
lib/
|
||||
build/
|
||||
lib
|
||||
vendor
|
||||
build
|
||||
.vscode
|
||||
.vs
|
||||
obj
|
||||
**.sln
|
||||
**.vcxproj
|
||||
**.filters
|
||||
**.user
|
||||
|
||||
|
55
premake5.lua
Normal file
55
premake5.lua
Normal file
@ -0,0 +1,55 @@
|
||||
workspace "LearnOpengl"
|
||||
configurations {"Debug", "Release"}
|
||||
architecture "x64"
|
||||
|
||||
project "LearnOpenGL"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
targetdir "build/"
|
||||
targetname "LearnOpenGL"
|
||||
|
||||
files {"vendor/GLAD/src/glad.c","src/**.h", "src/**.cpp"}
|
||||
|
||||
includedirs {
|
||||
"vendor/GLAD/include",
|
||||
"vendor/glfw/include",
|
||||
"vendor/assimp/include",
|
||||
"vendor/assimp/build/include",
|
||||
"vendor/glm",
|
||||
"vendor/stb"
|
||||
}
|
||||
|
||||
libdirs{
|
||||
"vendor/glfw",
|
||||
"vendor/assimp/build/lib/Debug"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
links{
|
||||
"glfw3",
|
||||
"assimp-vc143-mtd",
|
||||
|
||||
}
|
||||
|
||||
|
||||
filter "system:linux"
|
||||
links{
|
||||
"glfw3",
|
||||
"assimp",
|
||||
"GL",
|
||||
"dl",
|
||||
"pthread",
|
||||
"X11",
|
||||
"Xxf86vm",
|
||||
"Xrandr",
|
||||
"Xi",
|
||||
"z"
|
||||
}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines{"DEBUG"}
|
||||
symbols "On"
|
||||
filter "configurations:Release"
|
||||
defines{"NDEBUG"}
|
||||
optimize "On"
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "Primitives/shader.h"
|
||||
#include "Primitives/camera.h"
|
||||
#include "Application.h"
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
||||
|
||||
void processInput( GLFWwindow* window);
|
||||
|
Loading…
Reference in New Issue
Block a user