LearnOpenGL/premake5.lua
Nigel Barink dc89cc6173 Adding premake
I will now be able to work on this from any platform
2023-05-19 14:39:38 +02:00

56 lines
1.1 KiB
Lua

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"