YoggieEngine/premake5.lua

67 lines
1.1 KiB
Lua
Raw Normal View History

workspace "BarinkEngine"
2021-09-29 18:14:27 +00:00
configurations { "Debug", "Test", "Release" }
2021-09-29 18:14:27 +00:00
project "SandboxApplication"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "./artifacts/build/%{cfg.buildcfg}"
objdir "./artifacts/obj/%{cfg.buildcfg}"
2021-09-29 18:14:27 +00:00
includedirs {
"./libs/lua-5.4.3/",
2021-09-29 18:14:27 +00:00
}
2021-09-29 18:14:27 +00:00
libdirs {
os.findlib("lua")
}
2021-09-29 18:14:27 +00:00
files {
"SandboxApplication/*.c"
}
links{
"lua"
}
project "MyGraphicsEngine"
kind "ConsoleApp"
language "C++"
cppdialect "c++17"
targetdir "./artifacts/build/%{cfg.buildcfg}"
objdir "./artifacts/obj/%{cfg.buildcfg}"
buildmessage "Building MyGraphicsEngine"
includedirs {
"./libs/glfw-3.3.4/include/GLFW/",
"./libs/spdlog-1.9.1/include/spdlog/"
}
libdirs{
"./libs/spdlog-1.9.1/build/libspdlog.a",
os.findlib("glfw3"),
}
links {
-- "libspdlog",
"glfw3",
"X11",
"GL",
"GLU",
"pthread",
"dl",
"m"
}
files {"MyGraphicsEngine/*.c"}
filter "configurations:Debug"
defines {"DEBUG"}
symbols "On"
filter "configurations:Release"
defines {"NDEBUG"}
optimize "On"