From eb7a02af920b324be6511b753ce6ecc27b61733c Mon Sep 17 00:00:00 2001 From: asn Date: Tue, 19 Oct 2010 17:45:29 +0000 Subject: cmake: Added some documentation for add_jar(). git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1408 c9f7a03b-bd48-0410-a16d-cbbf54688b0b --- pki/cmake/Modules/UseJava.cmake | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'pki/cmake/Modules/UseJava.cmake') diff --git a/pki/cmake/Modules/UseJava.cmake b/pki/cmake/Modules/UseJava.cmake index 3ff782e8a..e48e1c338 100644 --- a/pki/cmake/Modules/UseJava.cmake +++ b/pki/cmake/Modules/UseJava.cmake @@ -1,7 +1,24 @@ # -# Additional flags: -# CMAKE_JAVA_COMPILE_FLAGS -# CMAKE_JAVA_INCLUDE_PATH +# This file provides functions for Java support. +# +# Available Functions: +# +# add_jar(TARGET_NAME SRC1 SRC2 .. SRCN RCS1 RCS2 .. RCSN) +# +# This command create a .jar. It compiles the given source +# files (SRC) and adds the given resource files (RCS) to the jar file. +# If only resource files are given then just a jar file is created. +# +# Additional instructions: +# To add compile flags to the target you can set these flags with +# the following variable: +# +# set(CMAKE_JAVA_COMPILE_FLAGS -nowarn) +# +# To add a path or a jar file to the class path you can do this +# with the CMAKE_JAVA_INCLUDE_PATH variable. +# +# set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/shibboleet.jar) # #============================================================================= # Copyright 2010 Andreas schneider -- cgit