diff options
| -rw-r--r-- | icd/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | icd/macos/VkICD_mock_icd.json | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/icd/CMakeLists.txt b/icd/CMakeLists.txt index ff8a479e..3fe467d5 100644 --- a/icd/CMakeLists.txt +++ b/icd/CMakeLists.txt @@ -52,6 +52,16 @@ if (WIN32) endforeach(config_file) endif() endif() +elseif(APPLE) + # extra setup for out-of-tree builds + if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)) + foreach (config_file ${ICD_JSON_FILES}) + add_custom_target(${config_file}-json ALL + COMMAND ln -sf ${CMAKE_CURRENT_SOURCE_DIR}/macos/${config_file}.json + VERBATIM + ) + endforeach(config_file) + endif() else() # extra setup for out-of-tree builds if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)) diff --git a/icd/macos/VkICD_mock_icd.json b/icd/macos/VkICD_mock_icd.json new file mode 100644 index 00000000..96b7eba8 --- /dev/null +++ b/icd/macos/VkICD_mock_icd.json @@ -0,0 +1,8 @@ +{ + "file_format_version" : "1.0.1", + "ICD": { + "library_path": "./libVkICD_mock_icd.dylib", + "api_version": "1.1.71" + } +} + |
