init.cmake 597 B

123456789101112131415161718
  1. OCV_OPTION(WITH_JULIA "Include Julia support (opencv_contrib)" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT AND NOT WIN32))
  2. ocv_assert(OPENCV_INITIAL_PASS)
  3. if(WITH_JULIA OR DEFINED Julia_FOUND)
  4. ocv_cmake_hook_append(STATUS_DUMP_EXTRA "${CMAKE_CURRENT_LIST_DIR}/hooks/STATUS_DUMP_EXTRA.cmake")
  5. endif()
  6. # --- Julia ---
  7. if(WITH_JULIA AND NOT DEFINED Julia_FOUND)
  8. include(${CMAKE_CURRENT_LIST_DIR}/FindJulia.cmake)
  9. if(NOT Julia_FOUND)
  10. message(WARNING "Julia was not found. Disabling Julia bindings...")
  11. ocv_module_disable(julia)
  12. endif()
  13. set(HAVE_JULIA ON)
  14. endif()