[FindCUDA] improvements for cross-platform build
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 23 Dec 2014 14:48:18 +0000 (17:48 +0300)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Tue, 23 Dec 2014 14:48:18 +0000 (17:48 +0300)
commite4d065289913bb0ab70b16b3b5a2775e60c683e3
treebc5056436baf5af5d0ff3c6d4a718d8fce21a500
parentc4246bc59c7dd99bada0498c6622027b23789d4e
[FindCUDA] improvements for cross-platform build

* improve `CUDA_TARGET_CPU_ARCH` cache initialization,
    allow to override initial value from calling script;
* add `CUDA_TARGET_OS_VARIANT` option to select OS variant;
* add `CUDA_TARGET_TRIPLET` option to select target triplet from
    `${CUDA_TOOLKIT_ROOT_DIR}/targets` folder;
* remove `CUDA_TOOLKIT_TARGET_DIR` option, now it is calculated from
    `CUDA_TARGET_TRIPLET`, the old approach still can be used for compatibility;
* for CUDA 6.5 and newer try to locate static libraries too, because
   in 6.5 toolkit for ARM cross compilation only static libraries are included.
cmake/FindCUDA.cmake
cmake/OpenCVDetectCUDA.cmake