summaryrefslogtreecommitdiffstats
path: root/Tests/JavaExportImport/InitialCache.cmake.in
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2016-05-31 14:51:25 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-07 12:50:36 (GMT)
commit95d84369b802473e22bcb662a86175621bba54c6 (patch)
tree2ed6f3f24884298ee77fdae27d32f57d6dfc1699 /Tests/JavaExportImport/InitialCache.cmake.in
parent5341c0d84af50c2ac5e4041885ab96f8d157ddfe (diff)
downloadCMake-95d84369b802473e22bcb662a86175621bba54c6.zip
CMake-95d84369b802473e22bcb662a86175621bba54c6.tar.gz
CMake-95d84369b802473e22bcb662a86175621bba54c6.tar.bz2
Tests: Add test for exported JARs
Add a unit test to test the new functions to export JAR targets. The test builds three sub-projects: two that generate and export a JAR (one does a build-directory-only export, one an install-only export), and a third that consumes the first two as imported targets.
Diffstat (limited to 'Tests/JavaExportImport/InitialCache.cmake.in')
-rw-r--r--Tests/JavaExportImport/InitialCache.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/JavaExportImport/InitialCache.cmake.in b/Tests/JavaExportImport/InitialCache.cmake.in
new file mode 100644
index 0000000..d15e6d1
--- /dev/null
+++ b/Tests/JavaExportImport/InitialCache.cmake.in
@@ -0,0 +1,5 @@
+set(CMAKE_MAKE_PROGRAM "@CMake_TEST_NESTED_MAKE_PROGRAM@" CACHE FILEPATH "Make Program")
+set(Java_JAVA_EXECUTABLE "@Java_JAVA_EXECUTABLE@" CACHE STRING "Java Interpreter")
+set(Java_JAVAC_EXECUTABLE "@Java_JAVAC_EXECUTABLE@" CACHE STRING "Java Compiler")
+set(Java_JAR_EXECUTABLE "@Java_JAR_EXECUTABLE@" CACHE STRING "Java Archive Tool")
+set(CMAKE_INSTALL_PREFIX "@JavaExportImport_BINARY_DIR@/Root" CACHE STRING "Installation Prefix")