OpenCVGenInfoPlist.cmake 792 B

12345678910111213141516171819
  1. set(OPENCV_APPLE_BUNDLE_NAME "OpenCV")
  2. set(OPENCV_APPLE_BUNDLE_ID "org.opencv")
  3. if(IOS)
  4. if(MAC_CATALYST)
  5. # Copy the iOS plist over to the OSX directory if building iOS library for Catalyst
  6. configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.plist.in"
  7. "${CMAKE_BINARY_DIR}/osx/Info.plist")
  8. elseif(APPLE_FRAMEWORK AND DYNAMIC_PLIST)
  9. configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.Dynamic.plist.in"
  10. "${CMAKE_BINARY_DIR}/ios/Info.plist")
  11. else()
  12. configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.plist.in"
  13. "${CMAKE_BINARY_DIR}/ios/Info.plist")
  14. endif()
  15. elseif(APPLE)
  16. configure_file("${OpenCV_SOURCE_DIR}/platforms/osx/Info.plist.in"
  17. "${CMAKE_BINARY_DIR}/osx/Info.plist")
  18. endif()