OpenCVDetectFlatbuffers.cmake 743 B

12345678910111213141516171819
  1. if(WITH_FLATBUFFERS)
  2. set(HAVE_FLATBUFFERS 1)
  3. set(flatbuffers_VERSION "23.5.9")
  4. ocv_install_3rdparty_licenses(flatbuffers "${OpenCV_SOURCE_DIR}/3rdparty/flatbuffers/LICENSE.txt")
  5. ocv_add_external_target(flatbuffers "${OpenCV_SOURCE_DIR}/3rdparty/flatbuffers/include" "" "HAVE_FLATBUFFERS=1")
  6. set(CUSTOM_STATUS_flatbuffers " Flatbuffers:" "builtin/3rdparty (${flatbuffers_VERSION})")
  7. endif()
  8. if(WITH_FLATBUFFERS OR HAVE_FLATBUFFERS)
  9. list(APPEND CUSTOM_STATUS flatbuffers)
  10. if(HAVE_FLATBUFFERS)
  11. if(NOT CUSTOM_STATUS_flatbuffers)
  12. list(APPEND CUSTOM_STATUS_flatbuffers " Flatbuffers:" "${flatbuffers_VERSION}")
  13. endif()
  14. else()
  15. list(APPEND CUSTOM_STATUS_flatbuffers " Flatbuffers:" "NO")
  16. endif()
  17. endif()