95d84369b8
Add a unit test to test the new functions to export JAR targets. The test builds three sub-projects: two that generate and export a JAR (one does a build-directory-only export, one an install-only export), and a third that consumes the first two as imported targets.
15 lines
309 B
CMake
15 lines
309 B
CMake
project(import Java)
|
|
|
|
cmake_minimum_required (VERSION 3.5)
|
|
set(CMAKE_VERBOSE_MAKEFILE 1)
|
|
|
|
find_package(Java COMPONENTS Development)
|
|
include(UseJava)
|
|
|
|
find_package(JavaBuildExportTest REQUIRED)
|
|
find_package(JavaInstallExportTest REQUIRED)
|
|
|
|
add_jar(${PROJECT_NAME}
|
|
SOURCES Import.java
|
|
INCLUDE_JARS foo bar)
|