2 try_compile(__VALID_DIRECTX
4 "${OpenCV_SOURCE_DIR}/cmake/checks/directx.cpp"
5 OUTPUT_VARIABLE TRY_OUT
7 if(NOT __VALID_DIRECTX)
10 try_compile(__VALID_DIRECTX_NV12
11 "${OpenCV_BINARY_DIR}"
12 "${OpenCV_SOURCE_DIR}/cmake/checks/directx.cpp"
13 COMPILE_DEFINITIONS "-DCHECK_NV12"
14 OUTPUT_VARIABLE TRY_OUT
16 if(__VALID_DIRECTX_NV12)
17 set(HAVE_DIRECTX_NV12 ON)
19 message(STATUS "No support for DirectX NV12 format (install Windows 8 SDK)")