2021-07-31 23:14:22 +00:00
|
|
|
include(ExternalProject)
|
|
|
|
|
2024-05-14 04:06:31 +00:00
|
|
|
set(MOLTENVK_VERSION "v1.2.8")
|
2021-11-13 23:56:12 +00:00
|
|
|
|
2021-07-31 23:14:22 +00:00
|
|
|
ExternalProject_Add(MoltenVK
|
|
|
|
GIT_REPOSITORY https://github.com/KhronosGroup/MoltenVK.git
|
2021-11-13 23:56:12 +00:00
|
|
|
GIT_TAG ${MOLTENVK_VERSION}
|
2021-07-31 23:14:22 +00:00
|
|
|
|
2021-11-14 01:31:27 +00:00
|
|
|
CONFIGURE_COMMAND ${CMAKE_CURRENT_LIST_DIR}/configure.sh <LOG_DIR> <SOURCE_DIR> ${MOLTENVK_VERSION}
|
2021-07-31 23:14:22 +00:00
|
|
|
|
2021-11-14 03:06:00 +00:00
|
|
|
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patch.sh ${CMAKE_SOURCE_DIR}/Externals/MoltenVK/patches/ ${MOLTENVK_VERSION}
|
|
|
|
|
2021-07-31 23:14:22 +00:00
|
|
|
BUILD_COMMAND make -C <SOURCE_DIR> macos
|
|
|
|
BUILD_IN_SOURCE ON
|
2024-05-14 04:06:31 +00:00
|
|
|
BUILD_BYPRODUCTS <SOURCE_DIR>/Package/Release/MoltenVK/dynamic/dylib/macOS/libMoltenVK.dylib
|
2021-07-31 23:14:22 +00:00
|
|
|
|
|
|
|
INSTALL_COMMAND ""
|
|
|
|
|
|
|
|
LOG_CONFIGURE ON
|
|
|
|
LOG_BUILD ON
|
|
|
|
LOG_OUTPUT_ON_FAILURE ON
|
|
|
|
)
|