diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2015-07-30 09:17:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-04 15:19:43 (GMT) |
commit | 3d287de4ea99718ffe2ac6b855c2786d67946be2 (patch) | |
tree | da8f2e5214ad8710a04d6170653ce03ee712bc95 /Tests/Java | |
parent | e72806fb30dd9162aa1b05cb478ae51d1ecd27fa (diff) | |
download | CMake-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.txt | 4 |
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) |