Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
364702b1
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 9 个月
通知
992
Star
71100
Fork
55581
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
364702b1
编写于
10月 27, 2020
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cmake(3rdparty): use EXCLUDE_FROM_ALL
上级
0ec94630
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
35 addition
and
28 deletion
+35
-28
3rdparty/carotene/CMakeLists.txt
3rdparty/carotene/CMakeLists.txt
+2
-2
3rdparty/cpufeatures/CMakeLists.txt
3rdparty/cpufeatures/CMakeLists.txt
+2
-2
3rdparty/ippicv/CMakeLists.txt
3rdparty/ippicv/CMakeLists.txt
+2
-2
3rdparty/ittnotify/CMakeLists.txt
3rdparty/ittnotify/CMakeLists.txt
+2
-2
3rdparty/libjasper/CMakeLists.txt
3rdparty/libjasper/CMakeLists.txt
+2
-2
3rdparty/libjpeg-turbo/CMakeLists.txt
3rdparty/libjpeg-turbo/CMakeLists.txt
+2
-2
3rdparty/libjpeg/CMakeLists.txt
3rdparty/libjpeg/CMakeLists.txt
+2
-2
3rdparty/libpng/CMakeLists.txt
3rdparty/libpng/CMakeLists.txt
+2
-2
3rdparty/libtiff/CMakeLists.txt
3rdparty/libtiff/CMakeLists.txt
+2
-2
3rdparty/libwebp/CMakeLists.txt
3rdparty/libwebp/CMakeLists.txt
+2
-2
3rdparty/openexr/CMakeLists.txt
3rdparty/openexr/CMakeLists.txt
+2
-2
3rdparty/protobuf/CMakeLists.txt
3rdparty/protobuf/CMakeLists.txt
+2
-2
3rdparty/quirc/CMakeLists.txt
3rdparty/quirc/CMakeLists.txt
+2
-2
3rdparty/tbb/CMakeLists.txt
3rdparty/tbb/CMakeLists.txt
+2
-1
3rdparty/zlib/CMakeLists.txt
3rdparty/zlib/CMakeLists.txt
+1
-1
cmake/OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+6
-0
未找到文件。
3rdparty/carotene/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -27,7 +27,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif
()
endif
()
add_library
(
carotene_objs OBJECT
add_library
(
carotene_objs OBJECT
EXCLUDE_FROM_ALL
${
carotene_headers
}
${
carotene_sources
}
)
...
...
@@ -41,4 +41,4 @@ if(WITH_NEON)
endif
()
# we add dummy file to fix XCode build
add_library
(
carotene STATIC
EXCLUDE_FROM_ALL
"$<TARGET_OBJECTS:carotene_objs>"
"
${
CAROTENE_SOURCE_DIR
}
/dummy.cpp"
)
add_library
(
carotene STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
"$<TARGET_OBJECTS:carotene_objs>"
"
${
CAROTENE_SOURCE_DIR
}
/dummy.cpp"
)
3rdparty/cpufeatures/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -14,7 +14,7 @@ if(NOT DEFINED CPUFEATURES_SOURCES)
endif
()
include_directories
(
${
CPUFEATURES_INCLUDE_DIRS
}
)
add_library
(
${
OPENCV_CPUFEATURES_TARGET_NAME
}
STATIC
${
CPUFEATURES_SOURCES
}
)
add_library
(
${
OPENCV_CPUFEATURES_TARGET_NAME
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
CPUFEATURES_SOURCES
}
)
set_target_properties
(
${
OPENCV_CPUFEATURES_TARGET_NAME
}
PROPERTIES OUTPUT_NAME cpufeatures
...
...
@@ -29,7 +29,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
OPENCV_CPUFEATURES_TARGET_NAME
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
OPENCV_CPUFEATURES_TARGET_NAME
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
cpufeatures LICENSE README.md
)
3rdparty/ippicv/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -17,7 +17,7 @@ file(GLOB lib_hdrs ${IPP_IW_PATH}/include/*.h ${IPP_IW_PATH}/include/iw/*.h ${IP
# Define the library target:
# ----------------------------------------------------------------------------------
add_library
(
${
IPP_IW_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
)
add_library
(
${
IPP_IW_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
)
if
(
UNIX
)
if
(
CV_GCC OR CV_CLANG OR CV_ICC
)
...
...
@@ -41,5 +41,5 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
IPP_IW_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
IPP_IW_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
3rdparty/ittnotify/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -37,7 +37,7 @@ set(ITT_SRCS
src/ittnotify/jitprofiling.c
)
add_library
(
${
ITT_LIBRARY
}
STATIC
${
ITT_SRCS
}
${
ITT_PUBLIC_HDRS
}
${
ITT_PRIVATE_HDRS
}
)
add_library
(
${
ITT_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
ITT_SRCS
}
${
ITT_PUBLIC_HDRS
}
${
ITT_PRIVATE_HDRS
}
)
if
(
NOT WIN32
)
if
(
HAVE_DL_LIBRARY
)
...
...
@@ -60,7 +60,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
ITT_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
ITT_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
ittnotify src/ittnotify/LICENSE.BSD src/ittnotify/LICENSE.GPL
)
3rdparty/libjasper/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -17,7 +17,7 @@ file(GLOB lib_ext_hdrs jasper/*.h)
# Define the library target:
# ----------------------------------------------------------------------------------
add_library
(
${
JASPER_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
${
lib_ext_hdrs
}
)
add_library
(
${
JASPER_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
${
lib_ext_hdrs
}
)
if
(
WIN32 AND NOT MINGW
)
add_definitions
(
-DJAS_WIN_MSVC_BUILD
)
...
...
@@ -46,7 +46,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
JASPER_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
JASPER_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
jasper LICENSE README copyright
)
3rdparty/libjpeg-turbo/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -106,7 +106,7 @@ set(JPEG_SOURCES ${JPEG_SOURCES} jsimd_none.c)
ocv_list_add_prefix
(
JPEG_SOURCES src/
)
add_library
(
${
JPEG_LIBRARY
}
STATIC
${
JPEG_SOURCES
}
${
SIMD_OBJS
}
)
add_library
(
${
JPEG_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
JPEG_SOURCES
}
${
SIMD_OBJS
}
)
set_target_properties
(
${
JPEG_LIBRARY
}
PROPERTIES OUTPUT_NAME
${
JPEG_LIBRARY
}
...
...
@@ -121,7 +121,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
JPEG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
JPEG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
libjpeg-turbo README.md LICENSE.md README.ijg
)
3rdparty/libjpeg/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -19,7 +19,7 @@ endif()
# Define the library target:
# ----------------------------------------------------------------------------------
add_library
(
${
JPEG_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
)
add_library
(
${
JPEG_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
)
if
(
CV_GCC OR CV_CLANG
)
set_source_files_properties
(
jcdctmgr.c PROPERTIES COMPILE_FLAGS
"-O1"
)
...
...
@@ -42,7 +42,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
JPEG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
JPEG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
libjpeg README
)
3rdparty/libpng/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -74,7 +74,7 @@ if(MSVC)
add_definitions
(
-D_CRT_SECURE_NO_DEPRECATE
)
endif
(
MSVC
)
add_library
(
${
PNG_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
)
add_library
(
${
PNG_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
)
target_link_libraries
(
${
PNG_LIBRARY
}
${
ZLIB_LIBRARIES
}
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wundef -Wcast-align -Wimplicit-fallthrough -Wunused-parameter -Wsign-compare
)
...
...
@@ -92,7 +92,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
PNG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
PNG_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
libpng LICENSE README
)
3rdparty/libtiff/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -462,7 +462,7 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4456 /wd4457 /wd4312) # vs2015
ocv_warnings_disable
(
CMAKE_C_FLAGS /wd4267 /wd4244 /wd4018 /wd4311 /wd4312
)
add_library
(
${
TIFF_LIBRARY
}
STATIC
${
lib_srcs
}
)
add_library
(
${
TIFF_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
)
target_link_libraries
(
${
TIFF_LIBRARY
}
${
ZLIB_LIBRARIES
}
)
set_target_properties
(
${
TIFF_LIBRARY
}
...
...
@@ -479,7 +479,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
TIFF_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
TIFF_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
libtiff COPYRIGHT
)
3rdparty/libwebp/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -34,7 +34,7 @@ endif()
add_definitions
(
-DWEBP_USE_THREAD
)
add_library
(
${
WEBP_LIBRARY
}
STATIC
${
lib_srcs
}
${
lib_hdrs
}
)
add_library
(
${
WEBP_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
)
if
(
ANDROID
)
target_link_libraries
(
${
WEBP_LIBRARY
}
${
CPUFEATURES_LIBRARIES
}
)
endif
()
...
...
@@ -59,6 +59,6 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
WEBP_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
WEBP_LIBRARY
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
3rdparty/openexr/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -125,7 +125,7 @@ if(MSVC AND CV_ICC)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
/Qrestrict"
)
endif
()
add_library
(
IlmImf STATIC
${
lib_hdrs
}
${
lib_srcs
}
)
add_library
(
IlmImf STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_hdrs
}
${
lib_srcs
}
)
target_link_libraries
(
IlmImf
${
ZLIB_LIBRARIES
}
)
set_target_properties
(
IlmImf
...
...
@@ -142,7 +142,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
IlmImf EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
IlmImf EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
openexr LICENSE AUTHORS.ilmbase AUTHORS.openexr
)
...
...
3rdparty/protobuf/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -141,7 +141,7 @@ append_if_exist(Protobuf_SRCS
)
include_directories
(
BEFORE
"
${
PROTOBUF_ROOT
}
/src"
)
# ensure using if own headers: https://github.com/opencv/opencv/issues/13328
add_library
(
libprotobuf STATIC
${
Protobuf_SRCS
}
)
add_library
(
libprotobuf STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
Protobuf_SRCS
}
)
target_include_directories
(
libprotobuf SYSTEM PUBLIC $<BUILD_INTERFACE:
${
PROTOBUF_ROOT
}
/src>
)
set_target_properties
(
libprotobuf
PROPERTIES
...
...
@@ -157,7 +157,7 @@ get_protobuf_version(Protobuf_VERSION "${PROTOBUF_ROOT}/src")
set
(
Protobuf_VERSION
${
Protobuf_VERSION
}
CACHE INTERNAL
""
FORCE
)
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
libprotobuf EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
libprotobuf EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
protobuf LICENSE README.md
)
3rdparty/quirc/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -8,7 +8,7 @@ ocv_include_directories(${CURR_INCLUDE_DIR})
file
(
GLOB_RECURSE quirc_headers RELATIVE
"
${
CMAKE_CURRENT_LIST_DIR
}
"
"include/*.h"
)
file
(
GLOB_RECURSE quirc_sources RELATIVE
"
${
CMAKE_CURRENT_LIST_DIR
}
"
"src/*.c"
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
quirc_headers
}
${
quirc_sources
}
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
quirc_headers
}
${
quirc_sources
}
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wunused-variable -Wshadow
)
set_target_properties
(
${
PROJECT_NAME
}
...
...
@@ -24,7 +24,7 @@ if(ENABLE_SOLUTION_FOLDERS)
endif
()
if
(
NOT BUILD_SHARED_LIBS
)
ocv_install_target
(
${
PROJECT_NAME
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
ocv_install_target
(
${
PROJECT_NAME
}
EXPORT OpenCVModules ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
endif
()
ocv_install_3rdparty_licenses
(
${
PROJECT_NAME
}
LICENSE
)
3rdparty/tbb/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -108,7 +108,7 @@ set(tbb_version_file "version_string.ver")
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
tbb_version_file
}
.cmakein"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
tbb_version_file
}
"
@ONLY
)
list
(
APPEND TBB_SOURCE_FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
tbb_version_file
}
"
)
add_library
(
tbb
${
TBB_SOURCE_FILES
}
)
add_library
(
tbb
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
TBB_SOURCE_FILES
}
)
target_compile_definitions
(
tbb PUBLIC
TBB_USE_GCC_BUILTINS=1
__TBB_GCC_BUILTIN_ATOMICS_PRESENT=1
...
...
@@ -165,6 +165,7 @@ ocv_install_target(tbb EXPORT OpenCVModules
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
COMPONENT libs
LIBRARY DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT libs
ARCHIVE DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
OPTIONAL
)
ocv_install_3rdparty_licenses
(
tbb
"
${
tbb_src_dir
}
/LICENSE"
"
${
tbb_src_dir
}
/README"
)
...
...
3rdparty/zlib/CMakeLists.txt
浏览文件 @
364702b1
...
...
@@ -76,7 +76,7 @@ set(ZLIB_SRCS
zutil.c
)
add_library
(
${
ZLIB_LIBRARY
}
STATIC
${
ZLIB_SRCS
}
${
ZLIB_PUBLIC_HDRS
}
${
ZLIB_PRIVATE_HDRS
}
)
add_library
(
${
ZLIB_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
ZLIB_SRCS
}
${
ZLIB_PUBLIC_HDRS
}
${
ZLIB_PRIVATE_HDRS
}
)
set_target_properties
(
${
ZLIB_LIBRARY
}
PROPERTIES DEFINE_SYMBOL ZLIB_DLL
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wshorten-64-to-32 -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshift-negative-value
...
...
cmake/OpenCVUtils.cmake
浏览文件 @
364702b1
...
...
@@ -1890,3 +1890,9 @@ function(ocv_update_file filepath content)
file
(
WRITE
"
${
filepath
}
"
"
${
content
}
"
)
endif
()
endfunction
()
if
(
NOT BUILD_SHARED_LIBS
AND
(
CMAKE_VERSION VERSION_LESS
"3.14.0"
))
ocv_update
(
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
""
)
# avoid CMake warnings: https://gitlab.kitware.com/cmake/cmake/-/issues/18938
else
()
ocv_update
(
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
"EXCLUDE_FROM_ALL"
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录