Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
FindVulkan.cmake for macOS #116
I believe that a lot of things are already in place for this to work.
CMake 3.10 (the version that is installed on macOS via brew) installs a
So I think that if you set the
then this shipped FindVulkan should work.
If there is a need to locate the
I'll look into it a bit more, but it may just turn out to be an effort to add this to the SDK documentation.
Note that this doesn't address apps that link MoltenVK directly.
Here's a minimal CMake file that builds the
cmake_minimum_required(VERSION 3.10) project(vulkaninfo) find_package(vulkan REQUIRED) add_executable(vulkaninfo vulkaninfo.c) target_link_libraries(vulkaninfo Vulkan::Vulkan)
Put the above CMakeLists.txt file in an empty directory someplace.
Then get a copy of the
Set the specified environment variables, adjusting for the actual location of your SDK.
mkdir build cd build cmake .. make ./vulkaninfo
and you should see the output of vulkaninfo in your terminal.
Is the above sufficient to address this issue? It illustrates how to locate the Vulkan loader and header files in the SDK from a CMake project.
Edit: projects -> project in CMake file.