Fixing code to locate wrapping executables using targets, if possible.

When building projects dependending on VTK, we ran into issues since some
variables were expected to be declared e.g. VTK_WRAP_PYTHON_INIT_EXE,
VTK_WRAP_HIERARCHY_EXE. These are unnnecessary since they are imported targets
and should be used if present. Updated code to use the targets directly if
found.

Change-Id: I74b5996671e195b02bd65b85b71a2e33bd3ca2da
Do not reference VTK_(SOURCE|BINARY)_DIR from module tests

The module Testing directories may not refer to VTK_SOURCE_DIR or
VTK_BINARY_DIR directly since they need to build under the
Testing/External project outside of VTK.  Since commit 13e19ed9 (Define
VTK_TEST_OUTPUT_DIR to name Testing/Temporary directory, 2012-04-10) all
module Testing directories must use VTK_TEST_OUTPUT_DIR to reference
Testing/Temporary.  Reference the CompareFileMD5.cmake script using a
relative path within the VTK source tree.

Change-Id: Ia84e16ff246c5b6b0a05ae1e7e0467a0197e241a
Fixing code to locate wrapping executables.

Fixes issue with VTK_WRAP_TCL_INIT_EXE.

Change-Id: I5f66d66453c355a1194ebc2ae1e6f0c327819377
Merge topic 'test-external-dirs' into master

a6393ad6 Do not reference VTK_(SOURCE|BINARY)_DIR from module tests
Merge topic 'use_build_tools_target' into master

a2aa6247 Fixing code to locate wrapping executables.
62510085 Fixing code to locate wrapping executables using targets, if possible.
Adding mechanisms to deal with compile-tools.

* Added new macros to vtkModuleMacros.cmake to add targets for build-tools. Now
  any component/module creating a tool that's used at compile time should use
  the vtk_compile_tools_target() macro.
* vtk_compile_tools_target(), besides ensuring that the target properties are
  setup properly, adds the target to the VTK_COMPILETOOLS_TARGETS list.
* As a last step, VTK_COMPILETOOLS_TARGETS are exported to both VTKTargets.cmake
  and VTKCompileToolsConfig.cmake.
* When cross compiling VTKCompileToolsConfig.cmake is imported to load
  information about all the build tools.
* vtkCompileTools is a new virtual target that can be used to build host-tools.
  It includes all the targets exported using vtk_compile_tools_target() or
  vtk_compile_tools_target_export() macros.
* For projects, like ParaView, that contain VTK, added a mechanism for the
  parent project to manage importing of the compile tools when cross compiling.

Change-Id: Ibf38868d8ea5f562c7c2682936c72bc11208c5c9
BUG: Make vtkFiltersStatisticsGnuR-HeaderTest pass

Add some assignment/copy constructor declarations.

Change-Id: I08effc87be3a8527fdbdcdc65e2644dfd2f4d9c8
ENH: Rewrite FindR.cmake to be more robust

Using a non-installed instance of R should now work properly. Libraries for
R are now searched for in the priority:
  1. Within a user-built instance of R at VTK_R_HOME
  2. Within an installed instance of R
  3. Within external system libraries

R_LIBRARY_BLAS and R_LIBRARY_LAPACK will now be found in external
system libraries, if R does not provide them directly.

If R cannot be located, a slightly more specific error message is printed.

Change-Id: I8094d5ba3b3acebe880764b6108433917dd18376
STYLE: FindR.cmake: Deprecate VTK_R_HOME, use R_HOME instead

This is consistent with the other R_* variables.

Change-Id: I1afa598c7322f3143d8a6a3b5aeb09c92a0453b6
BUG: Register vtkFiltersStatisticsGnuR config header with the module

Change-Id: Ie2810321a1b5654576507ac86c9fd012c17e4ef0
Use a special name for the Tcl RenderingGL2PS module.

Tcl modules can't have digits in the name, so GL2PS is replaced with
GLtoPS.

Change-Id: I4e94a25ef31e793822b3e2b5b41ca89b80882b5b
Merge topic 'RenameGL2PSForTcl' into master

ed8f93ad Use a special name for the Tcl RenderingGL2PS module.
Fixing context2d point sprites and graphics item

The OpenGL 2.0 device needed to load the 1.4 extension for point sprites.
This was working previously because other rendering code was loading it.

The QVTKGraphicsItem was not correctly resetting the bound texture to 0.

Change-Id: I7d187d587116c9d3da4a8b6e23bd66a9fd37c1e2
Explictly cast to int to avoid compiler warnings

Change-Id: I8326d689812fa6c75e59499831cec372c7462ecf
Merge topic 'update-GnuR' into master

f9d90d86 BUG: Register vtkFiltersStatisticsGnuR config header with the module
5f28b6b7 STYLE: FindR.cmake: Deprecate VTK_R_HOME, use R_HOME instead
4c454f6d ENH: Rewrite FindR.cmake to be more robust
6d087cb2 BUG: Make vtkFiltersStatisticsGnuR-HeaderTest pass
removed extra undesirable underscore prefix to fix mangling

Change-Id: I4beaeff3861e765b78421d94e542923efcc6c9db
Merge topic 'graphitem-type-warnings' into master

1e57aa90 Explictly cast to int to avoid compiler warnings
Merge topic 'NetCDF-mangling-fix' into master

ac84c4cc removed extra undesirable underscore prefix to fix mangling
Merge topic 'point-sprite-fix' into master

c4f5f3aa Fixing context2d point sprites and graphics item
Merge topic 'build_tools_target_rules' into master

b929bb08 Adding mechanisms to deal with compile-tools.