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