summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-04-05 18:28:17 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-04-05 18:28:17 (GMT)
commite252320793bd06b19366ef785734bb2d09b8ccbe (patch)
tree5a330758d2abc507ddb844702ab6fa4502c149c7 /Modules
parent485b50c357d325c40cf185d3917af5dc8ec14391 (diff)
parentede46d9d91485c224d4b2ca36c8c864263923eec (diff)
downloadCMake-e252320793bd06b19366ef785734bb2d09b8ccbe.zip
CMake-e252320793bd06b19366ef785734bb2d09b8ccbe.tar.gz
CMake-e252320793bd06b19366ef785734bb2d09b8ccbe.tar.bz2
Merge topic 'module-readme'
ede46d9 Modules: Add comment and copyright notice validation to readme.txt
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readme.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Modules/readme.txt b/Modules/readme.txt
index dd52000..e2d7f06 100644
--- a/Modules/readme.txt
+++ b/Modules/readme.txt
@@ -64,10 +64,32 @@ For example:
# VAR_REALLY_COOL - cool right?
#
+Test the documentation formatting by running "cmake --help-module FindXXX".
+Edit the comments until the output of this command looks satisfactory.
+
To have a .cmake file in this directory NOT show up in the
modules documentation, you should start the file with a blank
line.
+After the documentation, leave a *BLANK* line, and then add a
+copyright and licence notice block like this one:
+
+#=============================================================================
+# Copyright 2009-2011 Your Name
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+The layout of the notice block is strictly enforced by the ModuleNotices test.
+Only the year range and name may be changed freely.
+
A FindXXX.cmake module will typically be loaded by the command
FIND_PACKAGE(XXX [major[.minor[.patch[.tweak]]]] [EXACT]