UseJava.cmake: simplify path logic

Move logic to determine relative path to .java file to after the file
extension check, so that it only executes when it is actually used.
UseJava.cmake: fix passing jars to add_jar

Fix setting classpath when encountering a jar argument to add_jar to
actually set the variable that is used to specify the classpath to
javac, instead of just uselessly appending the jar to
CMAKE_JAVA_INCLUDE_PATH (which is never used again at the point where it
is modified). Also, list jars so specified as dependencies of compiling
the java sources for the jar target.
UseJava.cmake: accept jar targets in add_jar

Modify add_jar to also accepts jars by target name.
FindCUDA: Use the PRE_LINK mode only for MSVC >= 10

Use normal custom command dependencies by default.  Use the PRE_LINK
approach only to work around what seems to be a bug in msbuild handling
of custom build rules that chain together.
Determine C/CXX/Fortran compiler: minor restructuring

No functional changes, only change the way the if()-condition works,
to make it easier to add more cases.

Alex
Determine C/CXX/Fortran compiler: fix indentation

Alex
rename TI_DSP toolchain to TI, since it works also for the ARM compiler

Additionally, look for a special ar and strip

Alex
TI compiler: add automatic detection of prefix and suffixes

The TI cross compilers are named e.g. cl6x or armcl, the accompanying
strip and ar have the same prefixes/suffixes.

Alex
CMake Nightly Date Stamp
CMake Nightly Date Stamp
Document that CMAKE_AUTOMOC works with Qt 5.
CMake Nightly Date Stamp
CMake Nightly Date Stamp
FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.
FindQt4: Set the Qt4_FOUND variable if Qt4 is found

Provide the old QT4_FOUND for compatibility.
FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore

With a similar commit in Qt 5, this will error at CMake time if
an attempt is made to use

 target_link_libraries(foo Qt4::QtCore Qt5::Core)
FPHSA: Fix FOUND_VAR check to work with if() auto-dereference

Otherwise, it seems to match on the content of the variable.
Merge topic 'FindCUDA.cmake/SeparableCompilation'

b6e9b8f FindCUDA: Use the PRE_LINK mode only for MSVC >= 10
Merge topic 'TI_DSP_to_TI'

27e6f6e TI compiler: add automatic detection of prefix and suffixes
b301586 rename TI_DSP toolchain to TI, since it works also for the ARM compiler
12b25df Determine C/CXX/Fortran compiler: fix indentation
7baa55a Determine C/CXX/Fortran compiler: minor restructuring
Merge topic 'set-Qt4_FOUND'

28d14f9 FindQt4: Set the Qt4_FOUND variable if Qt4 is found