mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Exclude cap_ios.h from installation where it's not needed.
This commit is contained in:
parent
786726719f
commit
310169490a
@ -49,6 +49,9 @@ endif()
|
||||
# Removing WinRT API headers by default
|
||||
list(REMOVE_ITEM videoio_ext_hdrs "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/cap_winrt.hpp")
|
||||
|
||||
# Remove iOS API header by default
|
||||
list(REMOVE_ITEM videoio_ext_hdrs "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/cap_ios.h")
|
||||
|
||||
if(DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
||||
endif()
|
||||
@ -221,6 +224,7 @@ if(TARGET ocv.3rdparty.cap_ios)
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/cap_ios_photo_camera.mm
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/cap_ios_video_camera.mm)
|
||||
list(APPEND tgts ocv.3rdparty.cap_ios)
|
||||
list(APPEND videoio_ext_hdrs "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/cap_ios.h")
|
||||
endif()
|
||||
|
||||
if(TARGET ocv.3rdparty.android_mediandk)
|
||||
|
Loading…
Reference in New Issue
Block a user