Closed YouthImagination closed 1 year ago
Hey, sorry for replying so late. This is something you'll have to setup yourself in your Premake file. It's not the goal of this addon to handle this, nore is it Premake's goal to provide all the "find_package" utilities that CMake and equivalent are doing. https://premake.github.io/community/modules has a list of available Premade modules. Maybe one of those provides helpers to find packages. But my advice would just be to write a few helper functions in your project .lua file to help find the Vulkan SDK in case it's installed in the usaul places, and allow users to overwrite that using env var or whatever other method.
A bit like the qtpath
mechanism work in this addon: if the QTDIR
(or QT_DIR
) env var is setup, the addon will use this, otherwise it's up to the user to use the command to set the path manually.
Also maybe Vulkan SDK installers already create some env vars that you could use.
And I'm closing this issue since this is more like a general Premake question (you might also have some help on the Premake's community forums/pages because I think lots of people coming from CMake have already had that same kind of problems, and answers might already be there :))
Hi, I want to build a VS project with
QTVulkan
. QT6 will findVULKAN_SDK
automatically when I build project with CMake, like thisBut premake-qt will not automatically find the
VULKAN_SDK
path, QT6 will disable vulkan(vulkan == 0,QT_CONFIG
divide by zero). Is there any solution?