CMakeLists.txt 741 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. add_library(videometal
  2. MRCHelpers.h
  3. MTLBoundingBox.mm
  4. MTLBoundingBox.h
  5. MTLGfx.mm
  6. MTLGfx.h
  7. MTLMain.mm
  8. MTLObjectCache.h
  9. MTLObjectCache.mm
  10. MTLPerfQuery.mm
  11. MTLPerfQuery.h
  12. MTLPipeline.mm
  13. MTLPipeline.h
  14. MTLShader.mm
  15. MTLShader.h
  16. MTLStateTracker.mm
  17. MTLStateTracker.h
  18. MTLTexture.mm
  19. MTLTexture.h
  20. MTLUtil.mm
  21. MTLUtil.h
  22. MTLVertexFormat.mm
  23. MTLVertexFormat.h
  24. MTLVertexManager.mm
  25. MTLVertexManager.h
  26. VideoBackend.h
  27. )
  28. find_library(METAL_LIBRARY Metal)
  29. find_library(QUARTZCORE_LIBRARY QuartzCore)
  30. target_link_libraries(videometal
  31. PUBLIC
  32. common
  33. videocommon
  34. PRIVATE
  35. spirv_cross
  36. ${FOUNDATION_LIBRARY}
  37. ${METAL_LIBRARY}
  38. ${QUARTZCORE_LIBRARY}
  39. )
  40. target_compile_options(videometal PRIVATE -fno-objc-arc)