aboutsummaryrefslogtreecommitdiff
path: root/language/java
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-10 20:26:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-10 20:26:56 +0100
commit59a64de9b6955daee7f933b004c7a174d8d4ff9b (patch)
tree680afbab3ac74bf45bfb73bd54456bdd29836007 /language/java
parent47215008a529ab597ed18599b9fab01b07973d0e (diff)
downloadcmake-tools-59a64de9b6955daee7f933b004c7a174d8d4ff9b.tar.gz
cmake-tools-59a64de9b6955daee7f933b004c7a174d8d4ff9b.tar.xz
cmake-tools-59a64de9b6955daee7f933b004c7a174d8d4ff9b.zip
java: Documented create_javadoc.
Diffstat (limited to 'language/java')
-rw-r--r--language/java/UseJava.cmake73
1 files changed, 73 insertions, 0 deletions
diff --git a/language/java/UseJava.cmake b/language/java/UseJava.cmake
index e84a895..310ffde 100644
--- a/language/java/UseJava.cmake
+++ b/language/java/UseJava.cmake
@@ -87,17 +87,90 @@
# jar file you can specify it with the VERSIONS argument. The argument after
# DOC will be used for the documentation string in the cache.
#
+#
# install_jar(TARGET_NAME DESTINATION)
#
# This command installs the TARGET_NAME files to the given DESTINATION. It
# should be called in the same scope as add_jar() or it will fail.
#
+#
# install_jni_symlink(TARGET_NAME DESTINATION)
#
# This command installs the TARGET_NAME JNI symlinks to the given
# DESTINATION. It should be called in the same scope as add_jar()
# or it will fail.
#
+#
+# create_javadoc
+#
+# Create jave documentation based on files or packages. For more details
+# please read the javadoc manpage.
+#
+# There are two main signatures for create_javadoc. The first signature
+# works with package names on a path with source files:
+#
+# create_javadoc(
+# <VAR>
+# PACKAGES pkg1 [pkg2 ...]
+# [SOURCEPATH <sourcepath>]
+# [CLASSPATH <classpath>]
+# [INSTALLPATH <install path>]
+# [DOCTITLE "the documentation title"]
+# [WINDOWTITLE "the title of the document"]
+# [AUTHOR TRUE|FALSE]
+# [USE TRUE|FALSE]
+# [VERSION TRUE|FALSE]
+# )
+#
+# Example:
+#
+# create_javadoc(my_example_doc
+# PACKAGES com.exmaple.foo com.example.bar
+# SOURCEPATH ${CMAKE_CURRENT_SOURCE_PATH}
+# CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
+# WINDOWTITLE "My example"
+# DOCTITLE "<h1>My example</h1>"
+# AUTHOR TRUE
+# USE TRUE
+# VERSION TRUE
+# )
+#
+# The second signature for create_javadoc works on a given list of files.
+#
+# create_javadoc(
+# <VAR>
+# FILES file1 [file2 ...]
+# [CLASSPATH <classpath>]
+# [INSTALLPATH <install path>]
+# [DOCTITLE "the documentation title"]
+# [WINDOWTITLE "the title of the document"]
+# [AUTHOR TRUE|FALSE]
+# [USE TRUE|FALSE]
+# [VERSION TRUE|FALSE]
+# )
+#
+# Example:
+#
+# create_javadoc(my_example_doc
+# FILES ${example_SRCS}
+# CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
+# WINDOWTITLE "My example"
+# DOCTITLE "<h1>My example</h1>"
+# AUTHOR TRUE
+# USE TRUE
+# VERSION TRUE
+# )
+#
+# Both signatures share most of the options. These options are the same
+# as what you can find in the javadoc manpage. Please look at the manpage
+# for CLASSPATH, DOCTITLE, WINDOWTITLE, AUTHOR, USE and VERSION.
+#
+# The documentation will be by default installed to
+#
+# ${CMAKE_INSTALL_PREFIX}/share/javadoc/<VAR>
+#
+# if you don't set the INSTALLPATH.
+#
#=============================================================================
# Copyright 2010 Andreas schneider <asn@redhat.com>
# Copyright 2010 Ben Boeckel <ben.boeckel@kitware.com>