mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-21 14:41:58 +08:00

Julia Bindings GSoC - phase1 * Julia Phase 1 first commit * a few fixes to compile julia bindings on mac * Readme changes * Allow usage before installation and update README * Add CxxWrap installation and fix Mac build bug * CMake fixes and test refactoring * add tests, fix trailing whitespace, disable array-vec conversion * Fix trailing whiteline and warning * Add module documentation and fix tests in CMake * Change copyright block, CMake variable name * copy => copy_if_different * fix status dump and return lines * Remove Julia_Found outside init.cmake * change indentation Co-authored-by: Vadim Pisarevsky <vadim.pisarevsky@gmail.com>
23 lines
768 B
CMake
23 lines
768 B
CMake
OCV_OPTION(WITH_JULIA "Include Julia support (opencv_contrib)" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT AND NOT WIN32))
|
|
|
|
ocv_assert(OPENCV_INITIAL_PASS)
|
|
|
|
if(WITH_JULIA OR DEFINED Julia_FOUND)
|
|
ocv_cmake_hook_append(STATUS_DUMP_EXTRA "${CMAKE_CURRENT_LIST_DIR}/hooks/STATUS_DUMP_EXTRA.cmake")
|
|
endif()
|
|
|
|
# --- Julia ---
|
|
if(WITH_JULIA AND NOT DEFINED Julia_FOUND)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindJulia.cmake)
|
|
if(NOT Julia_FOUND)
|
|
message(WARNING "Julia was not found. Disabling Julia bindings...")
|
|
ocv_module_disable(julia)
|
|
endif()
|
|
|
|
# publish vars for status() dumper
|
|
set(Julia_FOUND "${Julia_FOUND}" PARENT_SCOPE)
|
|
set(Julia_EXECUTABLE "${Julia_EXECUTABLE}" PARENT_SCOPE)
|
|
set(HAVE_JULIA "YES" CACHE STRING ADVANCED)
|
|
|
|
endif()
|