v01
This commit is contained in:
20
thirdparty/Pangolin/CMakeModules/FindMediaFoundation.cmake
vendored
Normal file
20
thirdparty/Pangolin/CMakeModules/FindMediaFoundation.cmake
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# - Find MediaFoundation
|
||||
# Find the Windows SDK MediaFoundation libraries
|
||||
#
|
||||
# MediaFoundation_LIBRARIES - List of libraries when using MediaFoundation
|
||||
# MediaFoundation_FOUND - True if MediaFoundation found
|
||||
|
||||
IF (MSVC)
|
||||
SET( MediaFoundation_LIBRARIES mf.lib mfplat.lib mfreadwrite.lib mfuuid.lib strmiids.lib )
|
||||
SET( MediaFoundation_FOUND true )
|
||||
ENDIF (MSVC)
|
||||
|
||||
IF (MediaFoundation_FOUND)
|
||||
IF (NOT MediaFoundation_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found MediaFoundation: ${MediaFoundation_LIBRARIES}")
|
||||
ENDIF (NOT MediaFoundation_FIND_QUIETLY)
|
||||
ELSE (MediaFoundation_FOUND)
|
||||
IF (MediaFoundation_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find MediaFoundation")
|
||||
ENDIF (MediaFoundation_FIND_REQUIRED)
|
||||
ENDIF (MediaFoundation_FOUND)
|
||||
Reference in New Issue
Block a user