Initial setup.
Correctly linking glfw and spdlog... Linking could be improved by not needing the sandbox application to also be linked with glfw
This commit is contained in:
66
premake5.lua
66
premake5.lua
@ -1,51 +1,63 @@
|
||||
workspace "BarinkEngine"
|
||||
configurations { "Debug", "Test", "Release" }
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
targetdir "./build/%{prj.name}/%{cfg.buildcfg}"
|
||||
objdir "./intermediates/%{prj.name}/%{cfg.buildcfg}"
|
||||
|
||||
|
||||
project "SandboxApplication"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
targetdir "./artifacts/build/%{cfg.buildcfg}"
|
||||
objdir "./artifacts/obj/%{cfg.buildcfg}"
|
||||
|
||||
buildmessage "Building BarinkEngineSandbox ..."
|
||||
|
||||
includedirs {
|
||||
"./libs/lua-5.4.3/",
|
||||
|
||||
"./MyGraphicsEngine/include"
|
||||
}
|
||||
|
||||
libdirs {
|
||||
os.findlib("lua")
|
||||
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog-1.9.1/build"
|
||||
}
|
||||
|
||||
links{
|
||||
"spdlog",
|
||||
"glfw3",
|
||||
"X11",
|
||||
"GL",
|
||||
"GLU",
|
||||
"pthread",
|
||||
"dl",
|
||||
"m",
|
||||
"MyGraphicsEngine"
|
||||
}
|
||||
|
||||
files {
|
||||
"SandboxApplication/*.cpp"
|
||||
}
|
||||
|
||||
|
||||
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"
|
||||
kind "StaticLib"
|
||||
|
||||
buildmessage "Building MyGraphicsEngine ..."
|
||||
|
||||
includedirs {
|
||||
"./libs/glfw-3.3.4/include/GLFW/",
|
||||
"./libs/spdlog-1.9.1/include/spdlog/"
|
||||
"./libs/glfw-3.3.4/include",
|
||||
"./libs/spdlog-1.9.1/include",
|
||||
"./MyGraphicsEngine/include"
|
||||
}
|
||||
|
||||
|
||||
libdirs{
|
||||
"./libs/spdlog-1.9.1/build/libspdlog.a",
|
||||
os.findlib("glfw3"),
|
||||
"./libs/spdlog-1.9.1/build"
|
||||
}
|
||||
|
||||
links {
|
||||
-- "libspdlog",
|
||||
"libspdlog",
|
||||
"glfw3",
|
||||
"X11",
|
||||
"GL",
|
||||
@ -55,7 +67,7 @@ workspace "BarinkEngine"
|
||||
"m"
|
||||
}
|
||||
|
||||
files {"MyGraphicsEngine/*.c"}
|
||||
files {"MyGraphicsEngine/*.cpp"}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines {"DEBUG"}
|
||||
|
Reference in New Issue
Block a user