cmake: Fix java

* fix cmake/java.cmake
* fix <cmp>/java/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
This commit is contained in:
Mizux Seiha
2022-09-22 18:07:48 +02:00
committed by Corentin Le Molgat
parent ddbbd50228
commit b65c86da8b
8 changed files with 131 additions and 81 deletions

View File

@@ -19,7 +19,7 @@ endif()
if(BUILD_JAVA_EXAMPLES)
file(GLOB JAVA_SRCS "*.java")
foreach(FILE_NAME IN LISTS JAVA_SRCS)
add_java_test(${FILE_NAME})
add_java_example(${FILE_NAME})
endforeach()
endif()