Tests: Test namespaces with exported JARs

This commit is contained in:
Matthew Woehlke 2017-04-20 15:11:27 -04:00
parent 789c8de3df
commit 0bee006602
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)