aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/CMakeLists.txt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-01-25 07:31:26 +0100
committerSven Gothel <[email protected]>2021-01-25 07:31:26 +0100
commitf88eea315f7d4045155e3313d39d38a203ad564a (patch)
tree0fbd9e57da5697cafa7de06330b7356936ffb0b3 /test/java/CMakeLists.txt
parent18f7012edf0125f0c4ebfc8f14abb77a00f69f36 (diff)
Java import and modularization: Complete jaulib_fat and full JNI lib bootstraping via PlatformRuntime via PlatformProps (if available)
Diffstat (limited to 'test/java/CMakeLists.txt')
-rw-r--r--test/java/CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/java/CMakeLists.txt b/test/java/CMakeLists.txt
index cf0feb0..3269ea4 100644
--- a/test/java/CMakeLists.txt
+++ b/test/java/CMakeLists.txt
@@ -15,11 +15,13 @@ add_jar(jaulib_test
org/jau/net/data/AssetURLConnectionTest.txt
org/jau/net/data/RelativeData.txt
jau-test/info.txt
- INCLUDE_JARS jaulib_base_jar jaulib_jni_jar jaulib_net_jar jaulib_pkg_jar ${JUNIT_JAR}
+ INCLUDE_JARS ${jaulib_fat_jar_file} ${JUNIT_JAR}
MANIFEST ${CMAKE_CURRENT_BINARY_DIR}/manifest.txt
OUTPUT_NAME jaulib_test
)
-add_dependencies(jaulib_test jaulib_base_jar jaulib_jni_jar jaulib_net_jar jaulib_pkg_jar)
+add_dependencies(jaulib_test jaulib_fat_jar)
+
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/jaulib_test.jar DESTINATION ${CMAKE_INSTALL_LIBDIR}/../lib/java)
string( REPLACE ".java" "" TEST_JAVA_FILES2 "${TEST_JAVA_FILES}" )
string( REPLACE "/" "." BASENAMES_IDIOMATIC_EXAMPLES "${TEST_JAVA_FILES2}" )
@@ -29,15 +31,10 @@ set(ALL_EXAMPLE_TARGETS
${TARGETS_IDIOMATIC_EXAMPLES}
)
-find_jar(jaulib_base_jar_file NAMES jaulib_base PATHS "${CMAKE_CURRENT_BINARY_DIR}/../../java_base")
-find_jar(jaulib_jni_jar_file NAMES jaulib_jni PATHS "${CMAKE_CURRENT_BINARY_DIR}/../../java_jni")
-find_jar(jaulib_net_jar_file NAMES jaulib_net PATHS "${CMAKE_CURRENT_BINARY_DIR}/../../java_net")
-find_jar(jaulib_pkg_jar_file NAMES jaulib_pkg PATHS "${CMAKE_CURRENT_BINARY_DIR}/../../java_pkg")
-
foreach(name ${ALL_EXAMPLE_TARGETS})
# add_dependencies(${name} jaulib_test ${JUNIT_JAR})
add_test (NAME ${name} COMMAND ${JAVA_RUNTIME}
- -cp ${JUNIT_JAR}:${jaulib_base_jar_file}:${jaulib_jni_jar_file}:${jaulib_net_jar_file}:${jaulib_pkg_jar_file}:jaulib_test.jar
+ -cp ${JUNIT_JAR}:${jaulib_fat_jar_file}:jaulib_test.jar
org.junit.runner.JUnitCore ${name})
endforeach()