2022-04-19 04:13:02 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2022-04-14 03:22:16 +02:00
|
|
|
project(moltenvk NONE)
|
|
|
|
include(ExternalProject)
|
|
|
|
|
|
|
|
ExternalProject_Add(moltenvk
|
|
|
|
GIT_REPOSITORY https://github.com/KhronosGroup/MoltenVK.git
|
2023-05-24 08:37:24 +02:00
|
|
|
GIT_TAG 4c6bfbe
|
2022-04-14 03:22:16 +02:00
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK
|
|
|
|
CONFIGURE_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/fetchDependencies" --macos
|
2022-06-14 14:28:38 +02:00
|
|
|
BUILD_COMMAND xcodebuild build -quiet -project "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/MoltenVKPackaging.xcodeproj" -scheme "MoltenVK Package \(macOS only\)" -configuration "Release" -arch "${CMAKE_HOST_SYSTEM_PROCESSOR}"
|
2022-04-14 03:22:16 +02:00
|
|
|
COMMAND ln -f "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/MoltenVK/dylib/macOS/libMoltenVK.dylib" "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/Build/Products/Release/dynamic/libMoltenVK.dylib"
|
|
|
|
INSTALL_COMMAND ""
|
|
|
|
BUILD_BYPRODUCTS "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/Build/Products/Release/dynamic/libMoltenVK.dylib"
|
|
|
|
)
|