Advertisement
Guest User

Untitled

a guest
May 17th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. cmake --preset=default
  2. -- Running vcpkg install
  3. Detecting compiler hash for triplet arm64-osx...
  4. Compiler found: /usr/bin/c++
  5. All requested packages are currently installed.
  6. Total install time: 114 us
  7. glfw3 provides CMake targets:
  8.  
  9. # this is heuristically generated, and may not be correct
  10. find_package(glfw3 CONFIG REQUIRED)
  11. target_link_libraries(main PRIVATE glfw)
  12.  
  13. glfw3 provides pkg-config modules:
  14.  
  15. # A multi-platform library for OpenGL, window and input
  16. glfw3
  17.  
  18. The package glm provides CMake targets:
  19.  
  20. find_package(glm CONFIG REQUIRED)
  21. target_link_libraries(main PRIVATE glm::glm)
  22.  
  23. # Or use the header-only version
  24. find_package(glm CONFIG REQUIRED)
  25. target_link_libraries(main PRIVATE glm::glm-header-only)
  26.  
  27. The package vulkan-validationlayers provides the vulkan validationlayers.
  28. To make vulkan use them you have to manually add the vcpkg path "<vcpkg_installed>/share/vulkan/explicit_layer.d" to the environment variable VK_ADD_LAYER_PATH.
  29.  
  30. vulkan-sdk-components is compatible with built-in CMake targets:
  31.  
  32. # https://cmake.org/cmake/help/latest/module/FindVulkan.html
  33. find_package(Vulkan REQUIRED)
  34. # SPIR-V generator library
  35. target_link_libraries(main PRIVATE Vulkan::glslang)
  36. # DirectX Shader Compiler
  37. target_link_libraries(main PRIVATE Vulkan::dxc)
  38.  
  39. The vulkan-sdk-components package does not provide direct Visual Studio
  40. integration. For manual integration, add $(VULKAN_SDK)/include to your
  41. include path.
  42.  
  43. -- Running vcpkg install - done
  44. CMake Error at /Users/ta/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (_find_package):
  45. Could not find a package configuration file provided by "Vulkan" with any
  46. of the following names:
  47.  
  48. VulkanConfig.cmake
  49. vulkan-config.cmake
  50.  
  51. Add the installation prefix of "Vulkan" to CMAKE_PREFIX_PATH or set
  52. "Vulkan_DIR" to a directory containing one of the above files. If "Vulkan"
  53. provides a separate development package or SDK, be sure it has been
  54. installed.
  55. Call Stack (most recent call first):
  56. src/CMakeLists.txt:2 (find_package)
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement