Add CI on MacOS.

This commit is contained in:
asuessenbach
2021-12-08 09:34:04 +01:00
committed by Stephan Seitz
parent 86ae20eea6
commit 9e4f6812fb
6 changed files with 48 additions and 4 deletions

View File

@@ -33,6 +33,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DNOMINMAX -DVK_USE_PLATFORM_WIN32_KHR)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_definitions(-DVK_USE_PLATFORM_XCB_KHR)
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
add_definitions(-DVK_USE_PLATFORM_MACOS_MVK)
else()
message(FATAL_ERROR, "Vulkan-Hpp: unhandled platform for samples!")
endif()