Adding premake

I will now be able to work on this from any platform
This commit is contained in:
Nigel Barink 2023-05-19 14:39:38 +02:00
parent 85263312cd
commit dc89cc6173
3 changed files with 66 additions and 2 deletions

12
.gitignore vendored
View File

@ -1,3 +1,11 @@
lib/
build/
lib
vendor
build
.vscode
.vs
obj
**.sln
**.vcxproj
**.filters
**.user

55
premake5.lua Normal file
View 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"

View File

@ -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);