64 lines
1.3 KiB
Lua
64 lines
1.3 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",
|
|
"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"
|
|
|