mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 03:59:58 +00:00
Tests: Test namespaces with exported JARs
This commit is contained in:
parent
789c8de3df
commit
0bee006602
@ -7,4 +7,7 @@ find_package(Java COMPONENTS Development)
|
||||
include(UseJava)
|
||||
|
||||
add_jar(${PROJECT_NAME} Foo.java)
|
||||
export_jars(TARGETS ${PROJECT_NAME} FILE JavaBuildExportTestConfig.cmake)
|
||||
export_jars(
|
||||
TARGETS ${PROJECT_NAME}
|
||||
NAMESPACE foo::
|
||||
FILE JavaBuildExportTestConfig.cmake)
|
||||
|
@ -11,4 +11,4 @@ find_package(JavaInstallExportTest REQUIRED)
|
||||
|
||||
add_jar(${PROJECT_NAME}
|
||||
SOURCES Import.java
|
||||
INCLUDE_JARS foo bar)
|
||||
INCLUDE_JARS foo::foo bar::bar)
|
||||
|
@ -10,5 +10,6 @@ add_jar(${PROJECT_NAME} Bar.java)
|
||||
install_jar(${PROJECT_NAME} DESTINATION share/java)
|
||||
install_jar_exports(
|
||||
TARGETS ${PROJECT_NAME}
|
||||
NAMESPACE bar::
|
||||
FILE JavaInstallExportTestConfig.cmake
|
||||
DESTINATION share/cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user