mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-28 14:21:07 +00:00
23 lines
390 B
CMake
23 lines
390 B
CMake
if(APPLE)
|
|
find_path( METAL_INCLUDE_DIR
|
|
Metal/Metal.h
|
|
)
|
|
|
|
find_library( METAL_FRAMEWORKS Metal )
|
|
|
|
if(METAL_FRAMEWORKS)
|
|
set( METAL_LIBRARIES "-framework Metal -framework Foundation" )
|
|
endif()
|
|
endif()
|
|
|
|
|
|
set( METAL_FOUND "NO" )
|
|
if(METAL_LIBRARIES)
|
|
set( METAL_FOUND "YES" )
|
|
endif(METAL_LIBRARIES)
|
|
|
|
mark_as_advanced(
|
|
METAL_INCLUDE_DIR
|
|
METAL_LIBRARIES
|
|
)
|