summaryrefslogtreecommitdiffstats
path: root/Tests/Java/CMakeLists.txt
blob: e1bcf3c202d24d40f3700ededac3ee57bf598237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project(hello Java)

cmake_minimum_required (VERSION 2.6)
set(CMAKE_VERBOSE_MAKEFILE 1)

find_package(Java COMPONENTS Development)
include (UseJava)

add_jar(hello A.java HelloWorld.java)

# use listing file to specify sources
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/java_fileslist "A.java\nHelloWorld.java\n")
add_jar(hello2 @${CMAKE_CURRENT_BINARY_DIR}/java_fileslist)