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.
CMake Nightly Date Stamp
CMake Nightly Date Stamp
Make Qt Automoc append implicit includes after other user-specified dirs.

The commit d2536579 (Automoc: fix regression #13667, broken build in
phonon, 2012-11-19) changed Automoc to try to re-add the Qt header dir
if it was stripped out as an implicit include from the moc command
line. When invoking a compiler, those directories are stripped out
because they are built-in, but for moc, there are no built-in directories.

The follow-up commit acc22400 (Automoc: get include dirs without
stripping implicit include dirs off, 2012-12-07) went further by not
removing the implicit include dirs, if they were specified specifically
by the user.

This had the remaining problem that the implicit include dirs appeared
in a different order of precedence for moc compared to the compiler.
Resolve that by stripping out the include dirs, where specified for
the moc command line to, and then appending them at the end. Note that
the order of the appended implicit include directories is the order
they are specified in the CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES, not
the order specified by the user.
Merge topic 'automoc-append-implicit-dirs' into next

0b5d0c3 Make Qt Automoc append implicit includes after other user-specified dirs.
d7a2a9c CMake Nightly Date Stamp
Merge topic 'fix-java-jar-depends' into next

adeafad UseJava.cmake: accept jar targets in add_jar
53a05b8 UseJava.cmake: fix passing jars to add_jar
45c8e4b UseJava.cmake: simplify path logic
FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.
Merge topic 'findqt4-withqt5' into next

252bfd3 FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.
Use the QStandardItemModel workaround until 5.1.0.

If there is a Qt 5.0.3 release, it may or may not contain the patch
that fixes this issue.

 http://thread.gmane.org/gmane.comp.lib.qt.releasing/882

Just use the workaround until 5.1.0 which certainly will contain the
fix.
Merge topic 'expand-version-of-Qt5-gui-fix' into next

8acf851 Use the QStandardItemModel workaround until 5.1.0.
FindQt4: Set the Qt4_FOUND variable if Qt4 is found

Provide the old QT4_FOUND for compatibility.
Merge topic 'set-Qt4_FOUND' into next

28d14f9 FindQt4: Set the Qt4_FOUND variable if Qt4 is found
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)
Merge topic 'set-QT_MAJOR_VERSION' into next

4aa10cd FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore
FPHSA: Fix FOUND_VAR check to work with if() auto-dereference

Otherwise, it seems to match on the content of the variable.
Merge topic 'fix-FPHSA-match' into next

78e6217 FPHSA: Fix FOUND_VAR check to work with if() auto-dereference
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