我正在尝试让MoltenVK与premake5一起使用
我从源代码构建了MoltenVK,并且能够运行它附带的演示,现在我试图在自己的应用程序中使用它,但我只想使用premake5生成项目。
我运行它时收到此错误
directory not found . for option "-L../Libraries/macOS/static"
我已经全部安装了MoltenVK文件,但是没有正确地使用premake5进行安装,并且无法进行设置。
这是我的premake5.lua文件
-- workspace name
workspace "GameEngine"
-- location of generated projects
location "Generated"
-- set language for all projcets
language "C++"
-- arch for binaries
architecture "x86_64"
-- run configurations
configurations {
"Debug",
"Release"
}
filter {"configurations:Debug"}
symbols "On"
filter {"configurations:Release"}
optimize "On"
-- reset the filter
filter {}
-- binary output directory
targetdir ("Build/bin/%{prj.name}/%{cfg.longname}")
objdir ("Build/bin-int/%{prj.name}/%{cfg.longname}")
-- project in the workspace
project "ExampleLib"
-- kind of project
kind "SharedLib"
-- files to include in the project
files{
"Projects/ExampleLib/**"
}
-- include directories
includedirs {
"Libraries/GLFW/include",
"Libraries/MoltenVK/include"
}
-- library directories
libdirs {
"Libraries/GLFW/lib",
"Libraries/macOS/static"
}
-- link to libraries
links{
"GLFW",
}
-- project in the workspace
project "App"
-- kind of project
kind "WindowedApp"
-- files to include in the project
files{
"Projects/App/**"
}
-- include directories
includedirs {
"Projects/ExampleLib"
}
-- link libraries
links {
"ExampleLib"
}
我想念的东西是什么,或者我弄糟了什么,因为我很难理解文档,找不到任何互联网资源来提供帮助。