CMake configuration for MSMF capture

Applied in PR3247 to 2.4 branch.
This commit is contained in:
Artur Wieczorek 2014-09-25 12:05:54 +02:00
parent b91bd6716c
commit 302b138aa7
2 changed files with 2 additions and 0 deletions

View File

@ -254,6 +254,7 @@ if(WITH_DSHOW)
endif(WITH_DSHOW)
# --- VideoInput/Microsoft Media Foundation ---
ocv_clear_vars(HAVE_MSMF)
if(WITH_MSMF)
check_include_file(Mfapi.h HAVE_MSMF)
endif(WITH_MSMF)

View File

@ -42,6 +42,7 @@ if (WIN32 AND HAVE_DSHOW)
endif()
if (WIN32 AND HAVE_MSMF)
list(APPEND videoio_srcs ${CMAKE_CURRENT_LIST_DIR}/src/cap_msmf.hpp)
list(APPEND videoio_srcs ${CMAKE_CURRENT_LIST_DIR}/src/cap_msmf.cpp)
endif()