summaryrefslogtreecommitdiffstats
path: root/Tests/Java
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2015-07-30 09:17:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-04 15:19:43 (GMT)
commit3d287de4ea99718ffe2ac6b855c2786d67946be2 (patch)
treeda8f2e5214ad8710a04d6170653ce03ee712bc95 /Tests/Java
parente72806fb30dd9162aa1b05cb478ae51d1ecd27fa (diff)
downloadCMake-3d287de4ea99718ffe2ac6b855c2786d67946be2.zip
CMake-3d287de4ea99718ffe2ac6b855c2786d67946be2.tar.gz
CMake-3d287de4ea99718ffe2ac6b855c2786d67946be2.tar.bz2
UseJava: Teach add_jar to support file syntax for sources
Diffstat (limited to 'Tests/Java')
-rw-r--r--Tests/Java/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/Java/CMakeLists.txt b/Tests/Java/CMakeLists.txt
index 6a69a24..e1bcf3c 100644
--- a/Tests/Java/CMakeLists.txt
+++ b/Tests/Java/CMakeLists.txt
@@ -7,3 +7,7 @@ find_package(Java COMPONENTS Development)
include (UseJava)
add_jar(hello A.java HelloWorld.java)
+
+# use listing file to specify sources
+file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/java_fileslist "A.java\nHelloWorld.java\n")
+add_jar(hello2 @${CMAKE_CURRENT_BINARY_DIR}/java_fileslist)