mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
update CMakeList.txt
This commit is contained in:
parent
c8d8b1fbcd
commit
3b191bf2dd
@ -197,6 +197,7 @@ OCV_OPTION(BUILD_JASPER "Build libjasper from source" WIN32 O
|
|||||||
OCV_OPTION(BUILD_JPEG "Build libjpeg from source" WIN32 OR ANDROID OR APPLE)
|
OCV_OPTION(BUILD_JPEG "Build libjpeg from source" WIN32 OR ANDROID OR APPLE)
|
||||||
OCV_OPTION(BUILD_PNG "Build libpng from source" WIN32 OR ANDROID OR APPLE)
|
OCV_OPTION(BUILD_PNG "Build libpng from source" WIN32 OR ANDROID OR APPLE)
|
||||||
OCV_OPTION(BUILD_OPENEXR "Build openexr from source" (WIN32 OR ANDROID OR APPLE) AND NOT WINRT)
|
OCV_OPTION(BUILD_OPENEXR "Build openexr from source" (WIN32 OR ANDROID OR APPLE) AND NOT WINRT)
|
||||||
|
OCV_OPTION(BUILD_WEBP "Build WebP from source" (WIN32 OR ANDROID OR APPLE) AND NOT WINRT)
|
||||||
OCV_OPTION(BUILD_TBB "Download and build TBB from source" ANDROID )
|
OCV_OPTION(BUILD_TBB "Download and build TBB from source" ANDROID )
|
||||||
OCV_OPTION(BUILD_IPP_IW "Build IPP IW from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT )
|
OCV_OPTION(BUILD_IPP_IW "Build IPP IW from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT )
|
||||||
OCV_OPTION(BUILD_ITT "Build Intel ITT from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT AND NOT APPLE_FRAMEWORK )
|
OCV_OPTION(BUILD_ITT "Build Intel ITT from source" NOT MINGW IF (X86_64 OR X86) AND NOT WINRT AND NOT APPLE_FRAMEWORK )
|
||||||
|
@ -23,7 +23,7 @@ else()
|
|||||||
FIND_LIBRARY(WEBP_LIBRARY NAMES webp)
|
FIND_LIBRARY(WEBP_LIBRARY NAMES webp)
|
||||||
MARK_AS_ADVANCED(WEBP_LIBRARY)
|
MARK_AS_ADVANCED(WEBP_LIBRARY)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set WEBFOUND_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set WEBP_FOUND to TRUE if
|
||||||
# all listed variables are TRUE
|
# all listed variables are TRUE
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WebP DEFAULT_MSG WEBP_LIBRARY WEBP_INCLUDE_DIR)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WebP DEFAULT_MSG WEBP_LIBRARY WEBP_INCLUDE_DIR)
|
||||||
|
@ -20,6 +20,10 @@ if(APPLE)
|
|||||||
list(APPEND HIGHGUI_LIBRARIES ${ZLIB_LIBRARIES})
|
list(APPEND HIGHGUI_LIBRARIES ${ZLIB_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(HAVE_WEBP)
|
||||||
|
add_definitions(-DHAVE_WEBP)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(highgui_hdrs
|
set(highgui_hdrs
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/precomp.hpp
|
${CMAKE_CURRENT_LIST_DIR}/src/precomp.hpp
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user