opencv/cmake
iPanda 097fc1a271 Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop
* Add CUDA support for D3D11 interop. #13888

color_detail.hpp: fixed build error : dynamic initialization is not supported for a __constant__ variable.
directx.cpp: Add CUDA support(cl_nv_d3d11_sharing) for D3D11 interop.  #13888

Update directx.cpp

Format adjustment.

Update directx.cpp

fix error.

Update directx.cpp

Format adjustment

Update directx.cpp

fix trailing whitespace.

fix format errors

convert indentation to spaces .
Trim trailing whitespace.
Add information about source of cl_d3d11_ext.h
Avoid unrelated changes.

Increase compile-time conditional judgment.

Increase the judgment of whether the OCL device has the required extensions at compile time.

Add compilation option  `HAVE_CLNVEXT`.Check CL support in runtime.

Check result of `clGetExtensionFunctionAddressForPlatform` for KHR is invalid.It always can get the address(from OpenCL.dll),So I check NV support(from nvopencl64.dll) before KHR when `HAVE_CLNVEXT` is enabled.

Delete cl_d3d11_ext.h

Modified parameter list

fix "cannot open include file: 'CL/cl_d3d11_ext.h'"

 remove not referenced var

fix C2143: syntax error

Improve compile-time judgment.

dlrectx.cpp Modify the detection order.
initializeContextFromD3D11Device:
```
    // try with NV(Need to check it first)
    // try with KHR
```

fix warnig C4100

Revert "fix warnig C4100"

This reverts commit 76e5becb67780071d0cbde61cc4f5f807ad7c5ac.

fix warning C4100

fix warning C4505

Format alignment

Format adjustment and automatically detect header files.

Automatically detect header files when users are not configured or configuration errors occur.

avoid unrelated changes.

Update .cmake

Update .cmake

* fix build errors

* fix warning:defined but not used

* Revert "fix warning:defined but not used"

This reverts commit 7ab3537cd0.

* fix warning:defined but not used

* fix build error for mac

* fix build error for win

* optimizing branch judgment

* Revert "optimizing branch judgment"

This reverts commit 88b72b870e.

* fix warning C4702: unreachable code

* remove unused code

* Fix problems that may lead to undefined behavior

* Add status check

* fix error C2664,C2665 : cannot convert argument

* Format adjustment

VSCODE will automatically format the indentation to 4 spaces in some situation.

* fix error C2440

* fix error C2440

* add cl_d3d11_ext.h

* Format adjustment

* remove unnecessary checks
2019-03-24 18:34:09 +03:00
..
android android: refactor Android SDK detection 2018-04-05 19:19:31 +00:00
checks cmake:vsx Fix compilation fail on aligned runtime test when c++11 enabled 2019-03-21 11:21:00 +02:00
FindCUDA Some mist. typo fixes 2018-02-07 06:59:15 -05:00
templates Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop 2019-03-24 18:34:09 +03:00
cl2cpp.cmake cmake: don't add include <module>/src directory to avoid conflicts 2018-03-19 11:14:15 +03:00
copy_files.cmake cmake: fix android examples dependencies 2018-03-15 14:17:02 +03:00
FindCUDA.cmake Misc. typos 2018-07-31 18:44:23 +03:00
FindFlake8.cmake cmake: added check_flake8 target 2018-05-11 17:32:22 +03:00
FindGstreamerWindows.cmake Newer versions of gstreamer use a slightly different include path on windows. 2016-10-20 11:02:18 -04:00
FindOpenVX.cmake Updated OpenVX detector and wrappers to handle Reference attribute names change 2017-03-22 16:50:38 +03:00
FindPylint.cmake cmake: fix Pylint version detection 2017-08-28 19:03:44 +03:00
OpenCVCompilerDefenses.cmake cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars 2018-03-27 16:16:59 +03:00
OpenCVCompilerOptimizations.cmake cmake: fix compiler flags (CPU_BASELINE_REQUIRED=xxx + CPU_BASELINE=DETECT) 2018-11-28 14:04:03 +03:00
OpenCVCompilerOptions.cmake core:vsx Add support for VSX3 half precision conversions 2019-03-20 10:19:42 +02:00
OpenCVCRTLinkage.cmake cmake: debug info 2018-02-14 13:44:10 +03:00
OpenCVDetectApacheAnt.cmake cmake(java): add OPENCV_JAVA_SOURCE_VERSION/OPENCV_JAVA_TARGET_VERSION 2018-12-14 00:15:57 +00:00
OpenCVDetectCStripes.cmake Merge pull request #9075 from TonyLianLong:master 2017-07-03 16:14:17 +00:00
OpenCVDetectCUDA.cmake Added Turing to the _generations list. 2018-12-18 08:52:15 -08:00
OpenCVDetectCXXCompiler.cmake cmake: support MSVS 2019 2019-03-05 13:38:47 +03:00
OpenCVDetectDirectX.cmake fix build with Win7 SDK 2015-07-30 23:23:01 +03:00
OpenCVDetectHalide.cmake cmake: add Halide support (#8794) 2017-06-21 14:33:47 +03:00
OpenCVDetectInferenceEngine.cmake cmake: support OpenVINO env variable: INTEL_OPENVINO_DIR 2019-03-22 00:03:03 +03:00
OpenCVDetectMediaSDK.cmake MediaSDK video backend: Windows support 2017-10-11 16:33:37 +03:00
OpenCVDetectOpenCL.cmake Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop 2019-03-24 18:34:09 +03:00
OpenCVDetectPython.cmake cmake: fix Python detection for standalone bindings 2018-10-10 16:58:23 +00:00
OpenCVDetectTBB.cmake Reduced direct TBB dependencies 2018-04-06 14:21:15 +03:00
OpenCVDetectTrace.cmake trace: initial support for code trace 2017-06-26 17:07:13 +03:00
OpenCVDetectVTK.cmake cmake: fix variable expand in CMake conditions 2018-10-21 15:02:40 +00:00
OpenCVDownload.cmake cmake: add download helper scripts 2018-08-01 15:57:53 +03:00
OpenCVExtraTargets.cmake Added group targets for samples (opencv_samples, opencv_samples_<group>), install samples/data inseparate component 'samples_data' 2018-02-12 18:42:36 +03:00
OpenCVFindAtlas.cmake moved BLAS/LAPACK detection scripts from opencv_contrib/dnn to the main repository (#7918) 2016-12-22 22:57:44 +03:00
OpenCVFindFrameworks.cmake Detect cross-cutting frameworks before libraries so the latter can use them 2018-11-01 18:16:41 +03:00
OpenCVFindIntelPerCSDK.cmake Fix notes about cmake files. Fix build warning. 2013-12-17 16:13:55 +04:00
OpenCVFindIPP.cmake Merge pull request #12925 from alalek:fix_cmake_conditions 2018-10-25 11:52:39 +00:00
OpenCVFindIPPIW.cmake Merge pull request #12877 from maver1:3.4 2018-10-24 15:02:53 +03:00
OpenCVFindLAPACK.cmake core(lapack): fix build issues related to 'extern "C"' 2018-01-24 14:53:04 +03:00
OpenCVFindLATEX.cmake Started top-level CMakeLists.txt file reorganization: cmake scripts are moved to separate folder; refactored BUILD_*, INSTALL_*, ENABLE_*, USE_*, WITH_* options. 2012-01-03 13:48:12 +00:00
OpenCVFindLibsGrfmt.cmake Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
OpenCVFindLibsGUI.cmake cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars 2018-03-27 16:16:59 +03:00
OpenCVFindLibsPerf.cmake Detect cross-cutting frameworks before libraries so the latter can use them 2018-11-01 18:16:41 +03:00
OpenCVFindLibsVideo.cmake videoio(MSMF): backport WITH_MSMF_DXVA flag 2018-12-13 14:56:20 +03:00
OpenCVFindMKL.cmake cmake: fix variable expand in CMake conditions 2018-10-21 15:02:40 +00:00
OpenCVFindOpenBLAS.cmake cmake: update OpenBLAS support 2017-10-28 10:17:37 +03:00
OpenCVFindOpenEXR.cmake Normalize line endings and whitespace 2012-10-17 15:57:49 +04:00
OpenCVFindOpenNI2.cmake Help Cmake find OpenNI2 include path 2018-03-15 18:39:07 +09:00
OpenCVFindOpenNI.cmake Normalize line endings and whitespace 2012-10-17 15:57:49 +04:00
OpenCVFindProtobuf.cmake Fix install with external protobuf 2018-10-04 13:48:59 +03:00
OpenCVFindVA_INTEL.cmake Removed unnecessary build-time MediaSDK detection 2018-09-13 13:43:11 +03:00
OpenCVFindVA.cmake cmake: allow to specify own libva paths 2018-08-10 16:03:10 +03:00
OpenCVFindWebP.cmake update CMakeList.txt 2018-02-05 16:23:52 +03:00
OpenCVFindXimea.cmake XIMEA cam support: allow on OS X too 2014-09-09 19:25:14 +04:00
OpenCVGenABI.cmake cmake: CMP0026 NEW 2017-08-19 15:15:05 +00:00
OpenCVGenAndroidMK.cmake android: move .a files into 'staticlibs' directory 2018-02-15 16:31:49 +03:00
OpenCVGenConfig.cmake cmake: customize OpenCV build via CMake script hooks 2018-02-15 14:03:38 +03:00
OpenCVGenHeaders.cmake cmake: support multiple CPU targets 2017-02-13 19:52:59 +03:00
OpenCVGenInfoPlist.cmake Merge pull request #8009 from Legoless:master 2017-01-20 19:16:01 +03:00
OpenCVGenPkgconfig.cmake Removed cmake submodules and contrib_world references 2017-10-19 17:34:59 +03:00
OpenCVGenSetupVars.cmake cmake: fix python install paths 2018-12-17 14:32:29 +03:00
OpenCVMinDepVersions.cmake Merge pull request #12725 from alalek:cmake_python_win32 2018-10-08 17:45:50 +03:00
OpenCVModule.cmake cmake: don't generate dllmain for cudev module 2018-11-19 19:11:52 +03:00
OpenCVPackaging.cmake cmake: fix variable expand in CMake conditions 2018-10-21 15:02:40 +00:00
OpenCVPCHSupport.cmake Misc. typos 2018-07-31 18:44:23 +03:00
OpenCVPylint.cmake cmake: fix Ninja generator warning about pylintrc 2018-04-10 12:23:10 +03:00
OpenCVUtils.cmake Merge pull request #14026 from Palmitoxico:android-ndk 2019-03-18 15:40:03 +00:00
OpenCVVersion.cmake cmake: hide 'junk' dir from the root of build directory 2018-12-07 05:14:08 +00:00