mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 14:29:49 +08:00
15 lines
293 B
CMake
15 lines
293 B
CMake
if(WIN32)
|
|
try_compile(__VALID_DIRECTX
|
|
"${OpenCV_BINARY_DIR}"
|
|
"${OpenCV_SOURCE_DIR}/cmake/checks/directx.cpp"
|
|
OUTPUT_VARIABLE TRY_OUT
|
|
)
|
|
if(NOT __VALID_DIRECTX)
|
|
return()
|
|
endif()
|
|
set(HAVE_DIRECTX ON)
|
|
set(HAVE_D3D11 ON)
|
|
set(HAVE_D3D10 ON)
|
|
set(HAVE_D3D9 ON)
|
|
endif()
|