Download cmake/OpenCVDetectDirectML.cmake from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/OpenCVDetectDirectML.cmake
- Command line
-
hf download hf://tgollogly/test/cmake/OpenCVDetectDirectML.cmake
-
curl -L -o OpenCVDetectDirectML.cmake https://huggingface.co/tgollogly/test/resolve/main/cmake/OpenCVDetectDirectML.cmake
366 Bytes
| if(WIN32) | |
| try_compile(__VALID_DIRECTML | |
| "${OpenCV_BINARY_DIR}" | |
| "${OpenCV_SOURCE_DIR}/cmake/checks/directml.cpp" | |
| LINK_LIBRARIES d3d12 dxcore directml | |
| OUTPUT_VARIABLE TRY_OUT | |
| ) | |
| if(NOT __VALID_DIRECTML) | |
| message(STATUS "No support for DirectML (d3d12, dxcore, directml libs are required)") | |
| return() | |
| endif() | |
| set(HAVE_DIRECTML ON) | |
| endif() | |