CMakeLists.txt 648 B

1234567891011121314151617181920212223
  1. include(ExternalProject)
  2. set(MOLTENVK_VERSION "v1.2.8")
  3. ExternalProject_Add(MoltenVK
  4. GIT_REPOSITORY https://github.com/KhronosGroup/MoltenVK.git
  5. GIT_TAG ${MOLTENVK_VERSION}
  6. CONFIGURE_COMMAND ${CMAKE_CURRENT_LIST_DIR}/configure.sh <LOG_DIR> <SOURCE_DIR> ${MOLTENVK_VERSION}
  7. PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patch.sh ${CMAKE_SOURCE_DIR}/Externals/MoltenVK/patches/ ${MOLTENVK_VERSION}
  8. BUILD_COMMAND make -C <SOURCE_DIR> macos
  9. BUILD_IN_SOURCE ON
  10. BUILD_BYPRODUCTS <SOURCE_DIR>/Package/Release/MoltenVK/dynamic/dylib/macOS/libMoltenVK.dylib
  11. INSTALL_COMMAND ""
  12. LOG_CONFIGURE ON
  13. LOG_BUILD ON
  14. LOG_OUTPUT_ON_FAILURE ON
  15. )