CMake-MetalShaderSupport/example/CMakeLists.txt
2024-06-02 02:12:37 -07:00

13 lines
371 B
CMake

# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file LICENCE.txt or https://cmake.org/licensing for details.
if(CMAKE_Metal_COMPILER)
add_subdirectory(ShaderBase)
if(APPLE)
add_subdirectory(ExampleApp)
endif()
else()
message(FATAL_ERROR "This example can only be built if Metal compilation is supported")
endif()