summaryrefslogtreecommitdiffstats
path: root/jrt_test/src/java/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'jrt_test/src/java/CMakeLists.txt')
-rw-r--r--jrt_test/src/java/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/jrt_test/src/java/CMakeLists.txt b/jrt_test/src/java/CMakeLists.txt
new file mode 100644
index 00000000000..60ebc1b930b
--- /dev/null
+++ b/jrt_test/src/java/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+file(MAKE_DIRECTORY classes)
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/java_code_compiled
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/../binref/compilejava -d classes *.java
+ COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/java_code_compiled
+ DEPENDS DummySlobrokService.java HelloWorld.java PollRPCServer.java SimpleServer.java
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+add_custom_target(jrt_test_java ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/java_code_compiled)