File: FindMetal.cmake

package info (click to toggle)
opensubdiv 3.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,132 kB
  • sloc: cpp: 137,820; python: 1,069; objc: 412; javascript: 361; lisp: 216; ansic: 170; makefile: 24
file content (22 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
)