opencv/cmake
Roman Donchenko 6e121b2e29 Use imported targets for linking to CUDA
This retains the desirable quality of not including paths to CUDA libraries
from the build system into the config files, and has two major advantages:

* It removes the need to use link_directories, which doesn't guarantee that
  the libraries from the supplied directory will be used (there may be
  libraries with the same names earlier in the search path).

* It removes the need to put -L entries into OPENCV_LINKER_LIBS. This variable
  is used with target_link_libraries, where such entries are treated as linker
  flags, so doing this is unportable. I remove the support for -L entries
  from OpenCVGenPkgconfig.cmake, as well, to discourage adding them in the
  future.
2015-03-31 13:46:28 +03:00
..
checks ocl: workaround for msvc11 bug 2013-10-18 20:52:36 +04:00
FindCUDA backport from master 2015-02-24 16:05:21 +03:00
templates Use imported targets for linking to CUDA 2015-03-31 13:46:28 +03:00
cl2cpp.cmake ocl: fix compilation warnings, update openCLExecuteKernelInterop 2013-10-10 00:15:02 +04:00
CMakeParseArguments.cmake minor fix in FindTBB 2012-08-23 13:37:27 +04:00
FindCUDA.cmake backport from master 2015-02-24 16:05:21 +03:00
OpenCVCompilerOptions.cmake More accurate AVX and AVX2 control. 2015-01-04 23:41:14 +03:00
OpenCVConfig.cmake Remove local variables from CMAKE namespace 2015-03-24 14:42:55 +01:00
OpenCVCRTLinkage.cmake Add VS2013 support 2014-09-10 17:18:41 +08:00
OpenCVDetectAndroidSDK.cmake Cut path to CUDA libraries to prevent generation of OpenCVModules.cmake with abs path. 2014-03-19 18:47:32 +04:00
OpenCVDetectApacheAnt.cmake Fix ant/Java detection in cmake scripts 2013-03-29 18:29:40 +04:00
OpenCVDetectCStripes.cmake fixed C= detection script 2012-10-10 16:15:27 +04:00
OpenCVDetectCUDA.cmake Use imported targets for linking to CUDA 2015-03-31 13:46:28 +03:00
OpenCVDetectCXXCompiler.cmake Remove local variables from CMAKE namespace 2015-03-24 14:42:55 +01:00
OpenCVDetectOpenCL.cmake ocl: force to use Khronos OpenCL headers 2013-10-18 15:47:11 +04:00
OpenCVDetectPython.cmake Changed cmake python library search startegy for crosscompiling 2014-09-12 13:44:16 +04:00
OpenCVDetectTBB.cmake TBB download and build option enabled for non Android platfroms. 2013-02-06 14:43:57 +04:00
OpenCVDetectVTK.cmake More proper OpneCv+Qt+Vtk issues handling (http://code.opencv.org/issues/3492) 2014-02-10 15:45:44 +04:00
OpenCVExtraTargets.cmake Removed all use of the obsolete IMMEDIATE parameter to configure_file. 2014-01-29 19:34:02 +04:00
OpenCVFindIntelPerCSDK.cmake Fix notes about cmake files. Fix build warning. 2013-12-17 16:13:55 +04:00
OpenCVFindIPP.cmake Fixed compilation with IPP on Linux. Added linking with Intel compiler runtime libraries. 2014-02-17 16:56:02 +04: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 fixed problems with building iOS version 2013-08-23 13:41:19 +04:00
OpenCVFindLibsGUI.cmake Fix errors in usages of try_compile 2013-08-22 15:56:35 +04:00
OpenCVFindLibsPerf.cmake ability to enable OpenMP simultaneously with other parallel framework 2014-12-10 13:34:39 +03:00
OpenCVFindLibsVideo.cmake Add back the version variables removed in ab40630f. 2015-02-04 10:55:38 -05:00
OpenCVFindOpenEXR.cmake Normalize line endings and whitespace 2012-10-17 15:32:23 +04:00
OpenCVFindOpenNI.cmake Normalize line endings and whitespace 2012-10-17 15:32:23 +04:00
OpenCVFindPkgConfig.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
OpenCVFindXimea.cmake XIMEA cam support: allow on OS X too 2014-09-09 19:17:13 +04:00
OpenCVGenAndroidMK.cmake Fix Android build with the most resent android.toolchain.cmake 2014-12-25 12:41:17 +03:00
OpenCVGenConfig.cmake Don't use ${CMAKE_INSTALL_PREFIX} as an install destination 2015-02-10 19:43:29 +03:00
OpenCVGenHeaders.cmake All installed files marked with component names for install customization. 2014-01-21 20:34:36 +04:00
OpenCVGenInfoPlist.cmake Fix building the iOS framework after I dropped the VERSION macro. 2013-08-06 18:56:36 +04:00
OpenCVGenPkgconfig.cmake Use imported targets for linking to CUDA 2015-03-31 13:46:28 +03:00
OpenCVLegacyOptions.cmake Normalized file endings. 2013-08-21 18:59:25 +04:00
OpenCVModule.cmake Use imported targets for linking to CUDA 2015-03-31 13:46:28 +03:00
OpenCVPackaging.cmake Mark the libs component required 2015-02-20 18:37:21 +03:00
OpenCVPCHSupport.cmake Assorted fixes: 2014-12-25 12:41:16 +03:00
OpenCVUtils.cmake Use imported targets for linking to CUDA 2015-03-31 13:46:28 +03:00
OpenCVVersion.cmake Consistently use 4-digit library version 2013-01-18 14:57:55 +04:00