LearnOpenGL/premake5.lua

63 lines
1.3 KiB
Lua
Raw Permalink Normal View History

workspace "LearnOpengl"
configurations {"Debug", "Release"}
architecture "x64"
project "LearnOpenGL"
kind "ConsoleApp"
language "C++"
targetdir "build/"
targetname "LearnOpenGL"
files {
"vendor/GLAD/src/glad.c",
"vendor/ImGui/imgui*.cpp",
"vendor/ImGui/backends/imgui_impl_glfw.cpp",
"vendor/ImGui/backends/imgui_impl_opengl3.cpp",
"src/**.h",
"src/**.cpp"
}
includedirs {
"vendor/GLAD/include",
"vendor/glfw/include",
"vendor/assimp/include",
"vendor/assimp/build/include",
"vendor/glm",
"vendor/stb",
"vendor/ImGui"
}
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"