File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ OCV_OPTION(BUILD_JASPER "Build libjasper from source" WIN32 O
197
197
OCV_OPTION(BUILD_JPEG "Build libjpeg from source" WIN32 OR ANDROID OR APPLE )
198
198
OCV_OPTION(BUILD_PNG "Build libpng from source" WIN32 OR ANDROID OR APPLE )
199
199
OCV_OPTION(BUILD_OPENEXR "Build openexr from source" (WIN32 OR ANDROID OR APPLE ) AND NOT WINRT)
200
+ OCV_OPTION(BUILD_WEBP "Build WebP from source" (WIN32 OR ANDROID OR APPLE ) AND NOT WINRT)
200
201
OCV_OPTION(BUILD_TBB "Download and build TBB from source" ANDROID )
201
202
OCV_OPTION(BUILD_IPP_IW "Build IPP IW from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT )
202
203
OCV_OPTION(BUILD_ITT "Build Intel ITT from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT AND NOT APPLE_FRAMEWORK )
Original file line number Diff line number Diff line change 23
23
FIND_LIBRARY (WEBP_LIBRARY NAMES webp)
24
24
MARK_AS_ADVANCED (WEBP_LIBRARY)
25
25
26
- # handle the QUIETLY and REQUIRED arguments and set WEBFOUND_FOUND to TRUE if
26
+ # handle the QUIETLY and REQUIRED arguments and set WEBP_FOUND to TRUE if
27
27
# all listed variables are TRUE
28
28
INCLUDE (${CMAKE_ROOT} /Modules/FindPackageHandleStandardArgs.cmake)
29
29
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WebP DEFAULT_MSG WEBP_LIBRARY WEBP_INCLUDE_DIR)
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ if(APPLE)
20
20
list (APPEND HIGHGUI_LIBRARIES ${ZLIB_LIBRARIES} )
21
21
endif ()
22
22
23
+ if (HAVE_WEBP)
24
+ add_definitions (-DHAVE_WEBP)
25
+ endif ()
26
+
23
27
set (highgui_hdrs
24
28
${CMAKE_CURRENT_LIST_DIR} /src/precomp.hpp
25
29
)
You can’t perform that action at this time.
0 commit comments