cmake: fix linker deps for CUDA
Fix running Java tests with run.py on everything other than Windows.

Previously, run.py would assume that the opencv_java library is in the
same directory as the tests, which is only true on Windows.

The library path depends on the build configuration, which may not be
known until the actual build (e.g. with the Visual Studio generators),
so it can't be stored in the CMake cache for run.py to read. I didn't
want to hardcode into run.py where the library is on each platform,
either. So that's why I used the current scheme with the properties
file. It also makes running the tests without run.py a little easier.
ocl: rewrite CvtColor tests, added roi support
Merge pull request #1634 from alalek:cmake_fix_cuda_linker_deps
Merge pull request #1635 from alalek:cmake_fix_export_java
Merge pull request #1632 from alalek:cmake_find_package_build_dir
Merge pull request #1613 from alalek:ocl_cvtcolor
refactored filters in the ocl module; added an accuracy tests for ocl::medianFilter
Merge pull request #1637 from SpecLad:run-py-java-fix
Updated build of ffmpeg library (v 2.0.2). Builded with mingw (gcc 4.6.1) with
folowing additional options: --enable-w32threads, --arch=i686 (for 32-bit
library, workaround for http://trac.ffmpeg.org/ticket/2363)
made LOOP_TIMES as a command line option with default value=1
Merge pull request #1516 from akarsakov:new_ffmpeg_build
Merge pull request #1369 from StevenPuttemans:fix_featuretracker
Merge pull request #1636 from ilya-lavrenov:ocl_loop_times
Merge tag '2.4.6.2' into 2.4

OpenCV 2.4.6.2 (Tegra detection and native camera update)
ocl: perf: use RELATIVE_ERROR in SANITY_CHECK for exp/log/pow
fix imshow under Windows with OpenGL support:

we doesn't create OpenGL windows by default
OpenGL window must be created by user via namedWindow
Only append -l to lib entries with no path and no -l or -L of their own
shortened code to not repeat myself
added backslash