diff options
author | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:45:29 +0000 |
---|---|---|
committer | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:45:29 +0000 |
commit | eb7a02af920b324be6511b753ce6ecc27b61733c (patch) | |
tree | a3704545428ef0d09e154d4e39402acfb4c7f42b /pki/cmake | |
parent | 5d11bd9a06525640759aeb6cdd95c5dad54d7230 (diff) | |
download | pki-eb7a02af920b324be6511b753ce6ecc27b61733c.tar.gz pki-eb7a02af920b324be6511b753ce6ecc27b61733c.tar.xz pki-eb7a02af920b324be6511b753ce6ecc27b61733c.zip |
cmake: Added some documentation for add_jar().
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1408 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/cmake')
-rw-r--r-- | pki/cmake/Modules/UseJava.cmake | 23 |
1 files changed, 20 insertions, 3 deletions
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 <TARGET_NAME>.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 <asn@redhat.com> |