mirror of
https://github.com/opencv/opencv.git
synced 2024-12-17 19:08:01 +08:00
29e88e50ff
* G-API Initial code upload * Update G-API code base to Sep-24-2018 * The majority of OpenCV buildbot problems was addressed * Update G-API code base to 24-Sep-18 EOD * G-API code base update 25-Sep-2018 * Linux warnings should be resolved * Documentation build should become green * Number of Windows warnings should be reduced * Update G-API code base to 25-Sep-18 EOD * ARMv7 build issue should be resolved * ADE is bumped to latest version and should fix Clang builds for macOS/iOS * Remaining Windows warnings should be resolved * New Linux32 / ARMv7 warnings should be resolved * G-API code base update 25-Sep-2018-EOD2 * Final Windows warnings should be resolved now * G-API code base update 26-Sep-2018 * Fixed issues with precompiled headers in module and its tests
37 lines
1.2 KiB
CMake
37 lines
1.2 KiB
CMake
if(ANDROID)
|
|
# FIXME: Android build will be enabled separately
|
|
return()
|
|
endif()
|
|
|
|
set(ade_src_dir "${OpenCV_BINARY_DIR}/3rdparty/ade")
|
|
set(ade_filename "v0.1.1c.zip")
|
|
set(ade_subdir "ade-0.1.1c")
|
|
set(ade_md5 "db7e6a260229ee562a1b2857df473af8")
|
|
ocv_download(FILENAME ${ade_filename}
|
|
HASH ${ade_md5}
|
|
URL
|
|
"${OPENCV_ADE_URL}"
|
|
"$ENV{OPENCV_ADE_URL}"
|
|
"https://github.com/opencv/ade/archive/"
|
|
DESTINATION_DIR ${ade_src_dir}
|
|
ID ADE
|
|
STATUS res
|
|
UNPACK RELATIVE_URL)
|
|
|
|
if (NOT res)
|
|
return()
|
|
endif()
|
|
|
|
set(ADE_root "${ade_src_dir}/${ade_subdir}/sources/ade")
|
|
file(GLOB_RECURSE ADE_sources "${ADE_root}/source/*.cpp")
|
|
file(GLOB_RECURSE ADE_include "${ADE_root}/include/ade/*.hpp")
|
|
add_library(ade STATIC ${ADE_include} ${ADE_sources})
|
|
target_include_directories(ade PUBLIC $<BUILD_INTERFACE:${ADE_root}/include>)
|
|
set_target_properties(ade PROPERTIES POSITION_INDEPENDENT_CODE True)
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
ocv_install_target(ade EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
|
|
endif()
|
|
|
|
ocv_install_3rdparty_licenses(ade "${ade_src_dir}/${ade_subdir}/LICENSE")
|