ENH: Cleaned up documentation and formatted it for use by cmDocumentation.

This commit is contained in:
Brad King 2003-02-14 18:47:16 -05:00
parent dec0b51066
commit a02574158d
75 changed files with 612 additions and 365 deletions

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Depricated command, see SET_SOURCE_FILES_PROPERTIES."; return "Deprecated. See SET_SOURCE_FILES_PROPERTIES.";
} }
/** /**
@ -53,7 +53,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ABSTRACT_FILES(file1 file2 ..)."; " ABSTRACT_FILES(file1 file2 ...)\n"
"Marks files with the ABSTRACT property.";
} }
cmTypeMacro(cmAbstractFilesCommand, cmCommand); cmTypeMacro(cmAbstractFilesCommand, cmCommand);

View File

@ -77,7 +77,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create new command within CMake."; return "Add a custom build rule to the generated build system.";
} }
/** /**
@ -86,24 +86,37 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_CUSTOM_COMMAND([SOURCE source] [COMMAND command] TARGET target " " ADD_CUSTOM_COMMAND(TARGET target\n"
"[ARGS [args...]] [DEPENDS [depends...]] [OUTPUTS [outputs...]] [COMMENT comment])\n" " [SOURCE source]\n"
" [COMMAND command]\n"
" [ARGS [args...]]\n"
" [DEPENDS [depends...]]\n"
" [OUTPUTS [outputs...]]\n"
" [COMMENT comment])\n"
"This defines a new command that can be executed during the build " "This defines a new command that can be executed during the build "
"process. In makefile terms this creates a new target in the following form:<pre><code>\n" "process. In makefile terms this creates a new target in the "
"OUTPUT1: SOURCE DEPENDS\n" "following form:\n"
" OUTPUT1: SOURCE DEPENDS\n"
" COMAND ARGS\n" " COMAND ARGS\n"
"OUTPUT2: SOURCE DEPENDS\n" " OUTPUT2: SOURCE DEPENDS\n"
" COMAND ARGS\n" " COMAND ARGS\n"
" Example of usage:\n" "The TARGET must be specified, but it is not the make target of the "
"build rule. It is the target (library, executable, or custom target) "
"that will use the output generated from this rule. This is necessary "
"to choose a project file in which to generate the rule for Visual "
"Studio.\n\n"
"Example of usage:\n"
" ADD_CUSTOM_COMMAND(\n" " ADD_CUSTOM_COMMAND(\n"
" SOURCE ${VTK_TIFF_FAX_EXE} \n" " TARGET tiff\n"
" COMMAND ${VTK_TIFF_FAX_EXE} \n" " SOURCE ${TIFF_FAX_EXE}\n"
" ARGS -c const ${VTK_BINARY_DIR}/Utilities/tiff/tif_fax3sm.c \n" " COMMAND ${TIFF_FAX_EXE}\n"
" TARGET vtktiff \n" " ARGS -c const ${TIFF_BINARY_DIR}/tif_fax3sm.c\n"
" OUTPUTS ${VTK_BINARY_DIR}/Utilities/tiff/tif_fax3sm.c\n" " OUTPUTS ${TIFF_BINARY_DIR}/tif_fax3sm.c\n"
" )\n" " )\n"
"This will create custom target which will generate file tif_fax3sm.c\n" "This will create custom target which will generate file tif_fax3sm.c "
"using command ${VTK_TIFF_FAX_EXE}.</pre></code>"; "using command ${TIFF_FAX_EXE}. The rule will be executed as part of "
"building the tiff library because it includes tif_fax3sm.c as a "
"source file with the GENERATED property.";
} }
cmTypeMacro(cmAddCustomCommandCommand, cmCommand); cmTypeMacro(cmAddCustomCommandCommand, cmCommand);

View File

@ -55,9 +55,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add an extra target to the build system that " return "Add a target with no output so it will always be built.";
"does not produce output, so it"
" is run each time the target is built.";
} }
/** /**
@ -66,8 +64,15 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_CUSTOM_TARGET(Name [ALL] [ command arg arg arg ... ])\n" " ADD_CUSTOM_TARGET(Name [ALL] [ command arg arg arg ... ])\n"
"If the ALL option is specified it indicates that this target should be added to the default build target. The command and arguments are optional. If not specified, it will create an empty target. The command cannot be called ALL."; "Adds a target with the given name that executes the given command "
"every time the target is built. If the ALL option is specified "
"it indicates that this target should be added to the default build "
"target so that it will be run every time. "
"The command and arguments are optional. If not specified, "
"it will create an empty target. The ADD_DEPENDENCIES command can be "
"used in conjunction with this command to drive custom target "
"generation. The command cannot be called ALL.";
} }
cmTypeMacro(cmAddCustomTargetCommand, cmCommand); cmTypeMacro(cmAddCustomTargetCommand, cmCommand);

View File

@ -59,7 +59,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add -D define flags to command line for environments."; return "Adds -D define flags to the command line of C and C++ compilers.";
} }
/** /**
@ -68,8 +68,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_DEFINITIONS(-DFOO -DBAR ...)\n" " ADD_DEFINITIONS(-DFOO -DBAR ...)\n"
"Add flags to command line of C and C++ compiles. This command can be used to add any flag to a compile line, but the -D flag is accepted most C/C++ compilers. Other flags may not be as portable."; "Adds flags to command line of C and C++ compilers. "
"This command can be used to add any flag to a compile line, "
"but the -D flag is accepted most C/C++ compilers. "
"Other flags may not be as portable.";
} }
cmTypeMacro(cmAddDefinitionsCommand, cmCommand); cmTypeMacro(cmAddDefinitionsCommand, cmCommand);

View File

@ -61,8 +61,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_DEPENDENCIES(target-name depend-target depend-target)\n" " ADD_DEPENDENCIES(target-name depend-target1\n"
"Add a dependency to a target. This is only used to add dependencies between one executable and another. Regular build dependencies are handled automatically."; " depend-target2 ...)\n"
"Add a dependency to a target. This is only used to add dependencies "
"between targets that cannot be inferred from the library/executable "
"links that are specified. Regular build dependencies are "
"handled automatically.";
} }
cmTypeMacro(cmAddDependenciesCommand, cmCommand); cmTypeMacro(cmAddDependenciesCommand, cmCommand);

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add an executable to the project that uses the specified source files."; return "Add an executable to the project using the specified source files.";
} }
/** /**
@ -62,7 +62,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_EXECUTABLE(exename [WIN32] source1 source2 ... sourceN)\n" " ADD_EXECUTABLE(exename [WIN32] source1\n"
" source2 ... sourceN)\n"
"This command adds an executable target to the current directory. " "This command adds an executable target to the current directory. "
"The executable will be built from the list of source files " "The executable will be built from the list of source files "
"specified. The second argument to this command can be WIN32 " "specified. The second argument to this command can be WIN32 "

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add an library to the project that uses the specified source files."; return "Add an library to the project using the specified source files.";
} }
/** /**
@ -62,13 +62,15 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_LIBRARY(libname [SHARED | STATIC | MODULE] source1 source2 ... sourceN)\n" " ADD_LIBRARY(libname [SHARED | STATIC | MODULE]\n"
"Adds a library target. SHARED, STATIC or MODULE keywords are used\n" " source1 source2 ... sourceN)\n"
"to set the library type. If the keywork MODULE appears, the library\n" "Adds a library target. SHARED, STATIC or MODULE keywords are used "
"type is set to MH_BUNDLE on systems which use dyld. Systems without\n" "to set the library type. If the keyword MODULE appears, the library "
"dyld MODULE is treated like SHARED. If no keywords appear as the second\n" "type is set to MH_BUNDLE on systems which use dyld. On systems "
"argument, the type defaults to the current value of BUILD_SHARED_LIBS.\n" "without dyld, MODULE is treated like SHARED. If no keywords appear "
"If this variable is not set, the type defaults to STATIC."; " as the second argument, the type defaults to the current value of "
"BUILD_SHARED_LIBS. If this variable is not set, the type defaults "
"to STATIC.";
} }
cmTypeMacro(cmAddLibraryCommand, cmCommand); cmTypeMacro(cmAddLibraryCommand, cmCommand);

View File

@ -67,10 +67,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ADD_TEST(testname Exename arg1 arg2 arg3 ...)\n" " ADD_TEST(testname Exename arg1 arg2 ...)\n"
"If the ENABLE_TESTING command has been run, this command adds a" "If the ENABLE_TESTING command has been run, this command adds a "
"test target to the current directory. If ENABLE_TESTING has not" "test target to the current directory. If ENABLE_TESTING has not "
"been run, this command does nothing.\n" "been run, this command does nothing. "
"The tests are run by the testing subsystem by executing Exename " "The tests are run by the testing subsystem by executing Exename "
"with the specified arguments. Exename can be either an executable " "with the specified arguments. Exename can be either an executable "
"built by built by this project or an arbitrary executable on the " "built by built by this project or an arbitrary executable on the "

View File

@ -56,8 +56,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add all the source files found in the specified\n" return "Find all source files in a directory.";
"directory to the variable name specified.";
} }
/** /**
@ -66,7 +65,9 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"AUX_SOURCE_DIRECTORY(dir VARIABLE)"; " AUX_SOURCE_DIRECTORY(dir VARIABLE)\n"
"Collects the names of all the source files in the specified "
"directory and stores the list in the variable provided.";
} }
cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand); cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Determine the command line that will build this project."; return "Get the command line that will build this project.";
} }
/** /**
@ -67,8 +67,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"BUILD_COMMAND(NAME MAKECOMMAND)\n" " BUILD_COMMAND(variable MAKECOMMAND)\n"
"Within CMAKE set NAME to the command that will build this project from the command line using MAKECOMMAND. MAKECOMMAND should be msdev, nmake, make or one of the end use build tools. This command will construct the command line to use that will build all the targets in this project. This is useful for testing systems."; "Sets the given variable to a string containing the command that "
"will build this project from the root of the build tree using the "
"build tool given by MAKECOMMAND. MAKECOMMAND should be msdev, "
"nmake, make or one of the end user build tools. "
"This is useful for configuring testing systems.";
} }
cmTypeMacro(cmBuildCommand, cmCommand); cmTypeMacro(cmBuildCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Depricated command. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.."; return "Depricated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.";
} }
/** /**
@ -67,8 +67,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"BUILD_NAME(NAME)\n" " BUILD_NAME(variable)\n"
"Within CMAKE sets NAME to the build type."; "Sets the specified variable to a string representing the platform "
"and compiler settings. These values are now available through the "
"CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.";
} }
cmTypeMacro(cmBuildNameCommand, cmCommand); cmTypeMacro(cmBuildNameCommand, cmCommand);

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create a file from an autoconf style file.in file."; return "Copy a file to another location and modify its contents.";
} }
/** /**
@ -53,19 +53,21 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"CONFIGURE_FILE(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [IMMEDIATE] [@ONLY])\n" " CONFIGURE_FILE(InputFile OutputFile\n"
"The Input and Ouput files have to have full paths.\n" " [COPYONLY] [ESCAPE_QUOTES]\n"
"They can also use variables like CMAKE_BINARY_DIR,CMAKE_SOURCE_DIR. " " [IMMEDIATE] [@ONLY])\n"
"This command replaces any variables in the input file with their " "The Input and Ouput files have to have full paths. "
"values as determined by CMake. If a variables in not defined, it " "This command replaces any variables in the input file referenced as "
"will be replaced with nothing. If COPYONLY is passed in, then " "${VAR} or @VAR@ with their values as determined by CMake. If a "
"then no variable expansion will take place. If ESCAPE_QUOTES is " "variable is not defined, it will be replaced with nothing. "
"passed in then any substitued quotes will be C style escaped. " "If COPYONLY is specified, then then no variable expansion will take "
"place. If ESCAPE_QUOTES is specified in then any substitued quotes "
"will be C-style escaped. "
"If IMMEDIATE is specified, then the file will be configured with " "If IMMEDIATE is specified, then the file will be configured with "
"the current values of CMake variables instead of waiting until the " "the current values of CMake variables instead of waiting until the "
"end of CMakeLists processing. If @ONLY is present, only variables " "end of CMakeLists processing. If @ONLY is specified, only variables "
"of the form @var@ will be replaces and ${var} will be ignored. " "of the form @VAR@ will be replaces and ${VAR} will be ignored. "
"This is useful for configuring tcl scripts that use ${var}."; "This is useful for configuring tcl scripts that use ${VAR}.";
} }
virtual void FinalPass(); virtual void FinalPass();

View File

@ -67,8 +67,14 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"CREATE_TEST_SOURCELIST(SourceListName DriverName test1 test2 test3 " " CREATE_TEST_SOURCELIST(SourceListName DriverName\n"
"EXTRA_INCLUDE include.h FUNCTION function) The list of source files " " test1 test2 test3\n"
" EXTRA_INCLUDE include.h\n"
" FUNCTION function)\n"
"A test driver is a program that links together many small tests into "
"a single executable. This is useful when building static executables "
"with large libraries to shrink the total required size. "
"The list of source files "
"needed to build the testdriver will be in SourceListName. " "needed to build the testdriver will be in SourceListName. "
"DriverName is the name of the test driver program. The rest of " "DriverName is the name of the test driver program. The rest of "
"the arguments consist of a list of test source files, can be " "the arguments consist of a list of test source files, can be "

View File

@ -57,7 +57,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "starts the else portion of an if block"; return "Starts the ELSE portion of an IF block.";
} }
/** /**
@ -66,7 +66,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ELSE(args), Note that the args for the ELSE clause must match those of the IF clause. See the IF command for more information."; " ELSE(expression)\n"
"See IF command.";
} }
cmTypeMacro(cmElseCommand, cmCommand); cmTypeMacro(cmElseCommand, cmCommand);

View File

@ -74,7 +74,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Enable testing for this directory and below."; return "Enable testing for current directory and below.";
} }
/** /**
@ -83,8 +83,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ENABLE_TESTING()\n" " ENABLE_TESTING()\n"
"Enables testing for this directory and below. See also the ADD_TEST command. Note that Dart expects to find this file in the build directory root; therefore, this command should be in the source directory root too."; "Enables testing for this directory and below. "
"See also the ADD_TEST command. Note that Dart expects to find "
"a test file in the build directory root. Therefore, this command "
"should be in the source directory root too.";
} }
cmTypeMacro(cmEnableTestingCommand, cmCommand); cmTypeMacro(cmEnableTestingCommand, cmCommand);

View File

@ -64,7 +64,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "ends a foreach block"; return "Ends a list of commands in a FOREACH block.";
} }
/** /**
@ -72,7 +72,9 @@ public:
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return "ENDFOREACH(define)"; return
" ENDFOREACH(expression)\n"
"See FOREACH command.";
} }
cmTypeMacro(cmEndForEachCommand, cmCommand); cmTypeMacro(cmEndForEachCommand, cmCommand);

View File

@ -57,7 +57,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "ends an if block"; return "Ends a list of commands in an IF block.";
} }
/** /**
@ -66,7 +66,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ENDIF(define)"; " ENDIF(expression)\n"
"See IF command.";
} }
cmTypeMacro(cmEndIfCommand, cmCommand); cmTypeMacro(cmEndIfCommand, cmCommand);

View File

@ -64,12 +64,16 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"EXEC_PROGRAM(Executable [Directory to run in] [ARGS arguments to executable] [OUTPUT_VARIABLE var] [RETURN_VALUE var])" " EXEC_PROGRAM(Executable [directory in which to run]\n"
"The executable is run in the optionally specified Directory. The executable " " [ARGS <arguments to executable>]\n"
"can include arguments if it is double quoted, but it is better to use the " " [OUTPUT_VARIABLE <var>]\n"
"optional ARGS argument to specify arguments to the program. This is because " " [RETURN_VALUE <var>])\n"
"cmake will then be able to escape spaces in the Executable path. An optiona " "The executable is run in the optionally specified Directory. The "
"argument OUTPUT_VARIABLE specifies a variable to which the output will be set. " "executable can include arguments if it is double quoted, but it is "
"better to use the optional ARGS argument to specify arguments to the "
"program. This is because cmake will then be able to escape spaces "
"in the Executable path. An optional argument OUTPUT_VARIABLE "
"specifies a variable in which to store the output. "
"To capture the return value of the execution, use RETURN_VALUE variable. " "To capture the return value of the execution, use RETURN_VALUE variable. "
"If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr " "If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr "
"of the console running cmake."; "of the console running cmake.";

View File

@ -67,12 +67,14 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"EXPORT_LIBRARY_DEPENDENCIES(FILE [APPEND])\n" " EXPORT_LIBRARY_DEPENDENCIES(FILE [APPEND])\n"
"Create a file that can be included into a cmakelist file with the " "Create a file that can be included into a CMake listfile with the "
"INCLUDE command. The file will contain a number of SET commands " "INCLUDE command. The file will contain a number of SET commands "
"that will set all the variables needed for library dependency " "that will set all the variables needed for library dependency "
"information. This should be the last command in the top level " "information. This should be the last command in the top level "
"CMakeLists.txt file of the project."; "CMakeLists.txt file of the project. If the APPEND option is "
"specified, the SET commands will be appended to the given file "
"instead of replacing it.";
} }
cmTypeMacro(cmExportLibraryDependenciesCommand, cmCommand); cmTypeMacro(cmExportLibraryDependenciesCommand, cmCommand);

View File

@ -69,12 +69,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FLTK_WRAP_UI(resultingLibraryName source1 source2 ... sourceN )\n" " FLTK_WRAP_UI(resultingLibraryName source1\n"
"Produce .h and .cxx files for all the .fl and .fld file listed.\n" " source2 ... sourceN )\n"
"The .h files will be added to the library using the base name in\n" "Produce .h and .cxx files for all the .fl and .fld files listed. "
"source list.\n" "The resulting .h and .cxx files will be added to the specified "
"The .cxx files will be added to the library using the base name in \n" "library.";
"source list.";
} }
private: private:

View File

@ -61,7 +61,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Find a file."; return "Find the full path to a file.";
} }
/** /**
@ -70,16 +70,15 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FIND_FILE(NAME file extrapath extrapath ... [DOC docstring])" " FIND_FILE(VAR fileName path1 path2 ... [DOC docstring])\n"
"Find a file in the system PATH or in any extra paths specified in the command." "If the file is found, then VAR is set to the path where it was found. "
"A cache entry called NAME is created to store the result. " "A cache entry named by VAR is created to "
" NAME-NOTFOUND is the value used if the file was not found. " "store the result. VAR-NOTFOUND is the value used if the file was "
"As long as NOTFOUND is the value each time cmake will continue to " "not found. CMake will continue to look as long as the value "
"try and find the file each time it is run. " "is not found. If DOC is specified the next argument is the "
" If DOC is specified the next argument is the " "documentation string for the cache entry VAR. Since Executables "
"documentation string for the cache entry NAME. Since Executables, " "can have different extensions on different platforms, FIND_PROGRAM "
"can have different extensions on different platforms, FIND_PROGRAM," "should be used instead of FIND_FILE when looking for and executable.";
" should be used instead of FIND_FILE when looking for and executable.";
} }
cmTypeMacro(cmFindFileCommand, cmCommand); cmTypeMacro(cmFindFileCommand, cmCommand);

View File

@ -70,10 +70,16 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FIND_LIBRARY(DEFINE_PATH libraryName [NAMES name1 name2 name3...] [PATHS path1 path2 path3...] [DOC docstring] )\n" " FIND_LIBRARY(VAR libraryName\n"
"If the library is found, then DEFINE_PATH is set to the full path where it was found. " " [NAMES name1 name2 ...]\n"
"If DOC is specified the next argument is the " " [PATHS path1 path2 ...]\n"
"documentation string for the cache entry NAME."; " [DOC helpstring])\n"
"Find the library by looking in paths specified in the command. "
"A cache entry named by VAR is created to "
"store the result. VAR-NOTFOUND is the value used if the library was "
"not found. CMake will continue to look as long as the value "
"is not found. If DOC is specified the next argument is the "
"documentation string for the cache entry VAR.";
} }
cmTypeMacro(cmFindLibraryCommand, cmCommand); cmTypeMacro(cmFindLibraryCommand, cmCommand);

View File

@ -61,10 +61,19 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FIND_PACKAGE(<name> [major.minor])\n" " FIND_PACKAGE(<name> [major.minor])\n"
"Finds and loads settings from an external project. <name>_FOUND will\n" "Finds and loads settings from an external project. <name>_FOUND will "
"be set to indicate whether the package was found. Settings that\n" "be set to indicate whether the package was found. Settings that "
"can be used when <name>_FOUND is true are package-specific."; "can be used when <name>_FOUND is true are package-specific. The "
"package is found through several steps. "
"Directories listed in CMAKE_MODULE_PATH are searched for files called "
"\"Find<name>.cmake\". If such a file is found, it is read and "
"processed by CMake, and is responsible for finding the package. "
"If no such file is found, it is expected that the package is another "
"project built by CMake that has a \"<name>Config.cmake\" file. "
"A cache entry called <name>_DIR is created and is expected to be set "
"to the directory containing this file. If the file is found, it is "
"read and processed by CMake to load the settings of the package.";
} }
cmTypeMacro(cmFindPackageCommand, cmCommand); cmTypeMacro(cmFindPackageCommand, cmCommand);

View File

@ -61,7 +61,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Find a path for a file."; return "Find the directory containing a file.";
} }
/** /**
@ -70,10 +70,13 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FIND_PATH(PATH_DEFINE fileName path1 path2 path3...)\n" " FIND_PATH(VAR fileName path1 path2 ... [DOC docstring])\n"
"If the file is found, then PATH_DEFINE is set to the path where it was found." "If the file is found, then VAR is set to the path where it was found. "
"If DOC is specified the next argument is the " "A cache entry named by VAR is created to "
"documentation string for the cache entry NAME."; "store the result. VAR-NOTFOUND is the value used if the file was "
"not found. CMake will continue to look as long as the value "
"is not found. If DOC is specified the next argument is the "
"documentation string for the cache entry VAR.";
} }
cmTypeMacro(cmFindPathCommand, cmCommand); cmTypeMacro(cmFindPathCommand, cmCommand);

View File

@ -70,13 +70,19 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FIND_PROGRAM(DEFINE_NAME executableName [NAMES name1 name2 name3...] [PATHS path1 path2 path3...] [NO_SYSTEM_PATH] [DOC helpstring]) " " FIND_PROGRAM(VAR executableName\n"
"Find the executable in the system PATH or in any extra paths specified in the command." " [NAMES name1 name2 ...]\n"
"A cache entry called DEFILE_NAME is created to store the result. DEFILE_NAME-NOTFOUND is the value" " [PATHS path1 path2 ...]\n"
" used if the program was not found. CMake will continue to look as long as the value " " [NO_SYSTEM_PATH]\n"
"is NOTFOUND If DOC is specified the next argument is the " " [DOC helpstring])\n"
"documentation string for the cache entry NAME." "Find the executable in the system PATH or in any extra paths "
"If NO_SYSTEM_PATH is specified the contents of system PATH is not used"; "specified in the command. A cache entry named by VAR is created to "
"store the result. VAR-NOTFOUND is the value used if the program was "
"not found. CMake will continue to look as long as the value "
"is not found. If DOC is specified the next argument is the "
"documentation string for the cache entry VAR. "
"If NO_SYSTEM_PATH is specified the contents of system PATH are not "
"used.";
} }
cmTypeMacro(cmFindProgramCommand, cmCommand); cmTypeMacro(cmFindProgramCommand, cmCommand);

View File

@ -80,7 +80,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "start a foreach loop"; return "Evaluate a group of commands for each value in a list.";
} }
/** /**
@ -89,7 +89,17 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"FOREACH (define arg1 arg2 arg2) Starts a foreach block."; " FOREACH(loop_var arg1 arg2 ...)\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
" ENDFOREACH(loop_var)\n"
"All commands between FOREACH and the matching ENDFOREACH are recorded "
"without being invoked. Once the ENDFOREACH is evaluated, the "
"recorded list of commands is invoked once for each argument listed "
"in the original FOREACH command. Each recorded command is modified "
"before invocation to replace any occurrence of \"${loop_var}\" with "
"the current value in the list.";
} }
cmTypeMacro(cmForEachCommand, cmCommand); cmTypeMacro(cmForEachCommand, cmCommand);

View File

@ -67,19 +67,24 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"GET_FILENAME_COMPONENT(VarName FileName PATH|ABSOLUTE|NAME|EXT|NAME_WE|PROGRAM [PROGRAM_ARGS ArgVarName] [CACHE])\n" " GET_FILENAME_COMPONENT(VarName FileName\n"
" PATH|ABSOLUTE|NAME|EXT|NAME_WE\n"
" [CACHE])\n"
"Set VarName to be the path (PATH), file name (NAME), file " "Set VarName to be the path (PATH), file name (NAME), file "
"extension (EXT), file name without extension (NAME_WE) of FileName, " "extension (EXT), file name without extension (NAME_WE) of FileName, "
"or the full absolute (ABSOLUTE) file name without symlinks. " "or the full absolute (ABSOLUTE) file name without symlinks. "
"Note that the path is converted to Unix slashes format and has no " "Note that the path is converted to Unix slashes format and has no "
"trailing slashes. The longest file extension is always considered.\n" "trailing slashes. The longest file extension is always considered. If "
"Warning: as a utility command, the resulting value is not put in the " "the optional CACHE argument is specified, the result variable is "
"cache but in the definition list, unless you add the optional CACHE " "added to the cache.\n"
"parameter." " GET_FILENAME_COMPONENT(VarName FileName\n"
"For PROGRAM, the program in FileName will be found in the path or if it is " " PROGRAM [PROGRAM_ARGS ArgVar]\n"
"a full path. If PROGRAM_ARGS is present with PROGRAM, then the arguments " " [CACHE])\n"
"are split from the program. This is used to separate a program from its " "The program in FileName will be found in the system search path or "
"arguments."; "left as a full path. If PROGRAM_ARGS is present with PROGRAM, then "
"any command-line arguments present in the FileName string are split "
"from the program name and stored in ArgVar. This is used to separate "
"a program name from its arguments in a command line string.";
} }
cmTypeMacro(cmGetFilenameComponentCommand, cmCommand); cmTypeMacro(cmGetFilenameComponentCommand, cmCommand);

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Get a property for a file"; return "Get a property for a source file.";
} }
/** /**
@ -53,10 +53,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"GET_SOURCE_FILE_PROPERTY(VAR file property) " " GET_SOURCE_FILE_PROPERTY(VAR file property)\n"
"Get a property from a source file. The value of the property is " "Get a property from a source file. The value of the property is "
" stored in the variable VAR. If the property is not found, var " "stored in the variable VAR. If the property is not found, var "
"will be set to NOT_FOUND"; "will be set to NOT_FOUND. Use SET_SOURCE_FILES_PROPERTIES to set "
"property values. Source file properties usually control how the "
"file is built.";
} }
cmTypeMacro(cmGetSourceFilePropertyCommand, cmCommand); cmTypeMacro(cmGetSourceFilePropertyCommand, cmCommand);

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Get a property for a file"; return "Get a property from a target.";
} }
/** /**
@ -53,10 +53,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"GET_TARGET_PROPERTY(VAR target property) " " GET_TARGET_PROPERTY(VAR target property)\n"
"Get a property from a source file. The value of the property is " "Get a property from a target. The value of the property is "
" stored in the variable VAR. If the property is not found, var " "stored in the variable VAR. If the property is not found, var "
"will be set to NOT_FOUND"; "will be set to NOT_FOUND. Use SET_TARGET_PROPERTIES to set "
"property values. Properties are usually used to control how "
"a target is built.";
} }
cmTypeMacro(cmGetTargetPropertyCommand, cmCommand); cmTypeMacro(cmGetTargetPropertyCommand, cmCommand);

View File

@ -52,9 +52,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"ITK_WRAP_TCL(target-name config-file1 [config-file2 ...])\n" " ITK_WRAP_TCL(target-name config-file1 [config-file2 ...])\n"
"Run CABLE on all the configuration files to generate Tcl wrappers.\n" "Run CABLE on all the configuration files to generate Tcl wrappers. "
"The generated sources are added to a target of the given name."; "The generated sources are added to a target of the given name. This "
"command is provided for use by the Insight Toolkit (ITK) because it "
"was originally written before loaded commands were supported.";
} }
cmTypeMacro(cmITKWrapTclCommand, cmCommand); cmTypeMacro(cmITKWrapTclCommand, cmCommand);

View File

@ -79,7 +79,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "start an if block"; return "Conditionally execute a group of commands.";
} }
/** /**
@ -94,14 +94,53 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"IF (define) Starts an if block. Optionally it can be invoked " " IF(expression)\n"
"using (NOT define) (def AND def2) (def OR def2) (def MATCHES def2) " " # THEN section.\n"
"(COMMAND cmd) (EXISTS file) MATCHES checks if def matches the " " COMMAND1(ARGS ...)\n"
"regular expression def2. COMMAND checks if the cmake command cmd " " COMMAND2(ARGS ...)\n"
"is in this cmake executable. EXISTS file checks if file exists." " ...\n"
"Additionally you can do comparisons using LESS GREATER STRLESS " " ELSE(expression)\n"
"and STRGREATER. LESS and GREATER do numeric comparison while " " # ELSE section.\n"
"STRLESS and STRGREATER do string comparisons."; " COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
" ENDIF(expression)\n"
"Evaluates the given expression. If the result is true, the commands "
"in the THEN section are invoked. Otherwise, the commands in the "
"ELSE section are invoked. The ELSE section is optional. Note that "
"the same expression must be given to IF, ELSE, and ENDIF. Possible "
"expressions are:\n"
" IF(variable)\n"
"True if the variable's value is not empty, 0, FALSE, OFF, or NOTFOUND.\n"
" IF(NOT variable)\n"
"True if the variable's value is empty, 0, FALSE, OFF, or NOTFOUND.\n"
" IF(variable1 AND variable2)\n"
"True if both variables would be considered true individually. Only "
"one AND is allowed to keep expressions short.\n"
" IF(variable1 OR variable2)\n"
"True if either variable would be considered true individually. Only "
"one OR is allowed to keep expressions short.\n"
" IF(COMMAND command-name)\n"
"True if the given name is a command that can be invoked.\n"
" IF(EXISTS file-name)\n"
" IF(EXISTS directory-name)\n"
"True if the named file or directory exists.\n"
" IF(variable MATCHES regex)\n"
" IF(string MATCHES regex)\n"
"True if the given string or variable's value matches the given "
"regular expression.\n"
" IF(variable LESS number)\n"
" IF(string LESS number)\n"
" IF(variable GREATER number)\n"
" IF(string GREATER number)\n"
"True if the given string or variable's value is a valid number and "
"the inequality is true.\n"
" IF(variable STRLESS string)\n"
" IF(string STRLESS string)\n"
" IF(variable STRGREATER string)\n"
" IF(string STRGREATER string)\n"
"True if the given string or variable's value is lexicographically "
"less (or greater) than the string on the right.";
} }
// this is a shared function for both If and Else to determine if // this is a shared function for both If and Else to determine if

View File

@ -61,7 +61,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Basically identical to a C #include \"something\" command."; return "Read CMake listfile code from the given file.";
} }
/** /**
@ -70,8 +70,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INCLUDE(file1 [OPTIONAL])\nIf OPTIONAL is present, then do not complain " " INCLUDE(file1 [OPTIONAL])\n"
"if the file does not exist."; "Reads CMake listfile code from the given file. Commands in the file "
"are processed immediately as if they were written in place of the "
"INCLUDE command. If OPTIONAL is present, then no error "
"is raised if the file does not exist.";
} }
cmTypeMacro(cmIncludeCommand, cmCommand); cmTypeMacro(cmIncludeCommand, cmCommand);

View File

@ -68,7 +68,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INCLUDE_DIRECTORIES([BEFORE] dir1 dir2 ...)"; " INCLUDE_DIRECTORIES([BEFORE] dir1 dir2 ...)\n"
"Add the given directories to those searched by the compiler for "
"include files. If BEFORE is specified, the directories are prepended "
"onto the current list of directories instead of appended.";
} }
cmTypeMacro(cmIncludeDirectoryCommand, cmCommand); cmTypeMacro(cmIncludeDirectoryCommand, cmCommand);

View File

@ -63,7 +63,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INCLUDE_EXTERNAL_MSPROJECT(projectname location dep1 dep2 ...) Includes an external Microsoft project in the workspace file. Does nothing on UNIX currently\n"; " INCLUDE_EXTERNAL_MSPROJECT(projectname location\n"
" dep1 dep2 ...)\n"
"Includes an external Microsoft project in the generated workspace "
"file. Currently does nothing on UNIX.";
} }
cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand); cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand);

View File

@ -72,13 +72,13 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INCLUDE_REGULAR_EXPRESSION(regex_match [regex_complain])\n" " INCLUDE_REGULAR_EXPRESSION(regex_match [regex_complain])\n"
"Set the regular expressions used in dependency checking. Only files\n" "Set the regular expressions used in dependency checking. Only files "
"matching regex_match will be traced as dependencies. Only files\n" "matching regex_match will be traced as dependencies. Only files "
"matching regex_complain will generate warnings if they cannot be found\n" "matching regex_complain will generate warnings if they cannot be found "
"(standard header paths are not searched). The defaults are:\n" "(standard header paths are not searched). The defaults are:\n"
" regex_match = \"^.*$\" (match everything)\n" " regex_match = \"^.*$\" (match everything)\n"
" regex_complain = \"^$\" (match empty string only)\n"; " regex_complain = \"^$\" (match empty string only)";
} }
cmTypeMacro(cmIncludeRegularExpressionCommand, cmCommand); cmTypeMacro(cmIncludeRegularExpressionCommand, cmCommand);

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create install rules for files"; return "Create UNIX install rules for files.";
} }
/** /**
@ -70,20 +70,24 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INSTALL_FILES(path extension file file ...)\n" " INSTALL_FILES(<dir> extension file file ...)\n"
"INSTALL_FILES(path regexp)\n" "Create rules to install the listed files with the given extension "
"INSTALL_FILES(path FILES file file ...)\n" "into the given directory. "
"Create rules to install the listed files into the path. Path is\n" "Only files existing in the current source tree or its corresponding "
"relative to the variable CMAKE_INSTALL_PREFIX. There are three forms for\n" "location in the binary tree may be listed. "
"this command. In the first the files can be specified explicitly. If a\n" "If a file specified already has an extension, that extension will be "
"file specified already has an extension, that extension will be\n" "removed first. This is useful for providing lists of source files such "
"removed first. This is useful for providing lists of source files such\n" "as foo.cxx when you want the corresponding foo.h to be installed. A"
"as foo.cxx when you want the corresponding foo.h to be installed. A\n" "typical extension is '.h'.\n"
"typical extension is .h etc... In the second form any files in the\n" " INSTALL_FILES(<dir> regexp)\n"
"current directory that match the regular expression will be installed.\n" "Any files in the current source directory that match the regular "
"In the third form, any files listed after the FILES keyword will be\n" "expression will be installed.\n"
"installed explicitly from the names given. Full paths are allowed in\n" " INSTALL_FILES(<dir> FILES file file ...)\n"
"this form."; "Any files listed after the FILES keyword will be "
"installed explicitly from the names given. Full paths are allowed in "
"this form.\n\n"
"The directory <dir> is relative to the installation prefix, which "
"is stored in the variable CMAKE_INSTALL_PREFIX.";
} }
cmTypeMacro(cmInstallFilesCommand, cmCommand); cmTypeMacro(cmInstallFilesCommand, cmCommand);

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create install rules for programs"; return "Create UNIX install rules for programs.";
} }
/** /**
@ -70,9 +70,16 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INSTALL_PROGRAMS(path file file ...)\n" " INSTALL_PROGRAMS(<dir> file file ...)\n"
"INSTALL_PROGRAMS(path regexp)\n" "Create rules to install the listed programs into the given directory.\n"
"Create rules to install the listed programs into the path. Path is relative to the variable CMAKE_INSTALL_PREFIX. There are two forms for this command. In the first the programs can be specified explicitly. In the second form any program in the current directory that match the regular expression will be installed."; " INSTALL_PROGRAMS(<dir> regexp)\n"
"In the second form any program in the current source directory that "
"matches the regular expression will be installed.\n\n"
"This command is intended to install programs that are not built "
"by cmake, such as shell scripts. See INSTALL_TARGETS to "
"create installation rules for targets built by cmake.\n\n"
"The directory <dir> is relative to the installation prefix, which "
"is stored in the variable CMAKE_INSTALL_PREFIX.";
} }
cmTypeMacro(cmInstallProgramsCommand, cmCommand); cmTypeMacro(cmInstallProgramsCommand, cmCommand);

View File

@ -54,7 +54,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create install rules for targets"; return "Create UNIX install rules for targets.";
} }
/** /**
@ -63,8 +63,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"INSTALL_TARGETS(path target target)\n" " INSTALL_TARGETS(<dir> target target)\n"
"Create rules to install the listed targets into the path. Path is relative to the variable PREFIX"; "Create rules to install the listed targets into the given directory. "
"The directory <dir> is relative to the installation prefix, which "
"is stored in the variable CMAKE_INSTALL_PREFIX.";
} }
cmTypeMacro(cmInstallTargetsCommand, cmCommand); cmTypeMacro(cmInstallTargetsCommand, cmCommand);

View File

@ -61,7 +61,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Specify link directories."; return "Specify directories in which to search for libraries.";
} }
/** /**
@ -70,10 +70,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"LINK_DIRECTORIES(directory1 directory2 ...)\n" " LINK_DIRECTORIES(directory1 directory2 ...)\n"
"Specify the paths to the libraries that will be linked in.\n" "Specify the paths in which the linker should search for libraries.";
"The directories can use built in definitions like \n"
"CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.";
} }
cmTypeMacro(cmLinkDirectoriesCommand, cmCommand); cmTypeMacro(cmLinkDirectoriesCommand, cmCommand);

View File

@ -60,9 +60,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return return "Link libraries to all targets added later.";
"Specify a list of libraries to be linked into\n"
"executables or shared objects.";
} }
/** /**
@ -71,14 +69,15 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"LINK_LIBRARIES(library1 <debug | optimized> library2 ...)\n" " LINK_LIBRARIES(library1 <debug | optimized> library2 ...)\n"
"Specify a list of libraries to be linked into " "Specify a list of libraries to be linked into "
"any following targets (typically added with the ADD_EXECUTABLE " "any following targets (typically added with the ADD_EXECUTABLE "
"or ADD_LIBRARY calls). This command is passed " "or ADD_LIBRARY calls). This command is passed "
"down to all other commands. " "down to all subdirectories. "
"The debug and optimized strings may be used to indicate that " "The debug and optimized strings may be used to indicate that "
"the next library listed is to be used only for that specific " "the next library listed is to be used only for that specific "
"type of build"; "type of build. Considure using TARGET_LINK_LIBRARIES for more "
"specific linking control.";
} }
cmTypeMacro(cmLinkLibrariesCommand, cmCommand); cmTypeMacro(cmLinkLibrariesCommand, cmCommand);

View File

@ -55,7 +55,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "load in the values from another cache."; return "Load in the values from another project's CMake cache.";
} }
/** /**
@ -64,16 +64,23 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"LOAD_CACHE(pathToCacheFile [EXCLUDE entry1...] [INCLUDE_INTERNALS entry1...])\n" " LOAD_CACHE(pathToCacheFile READ_WITH_PREFIX\n"
"LOAD_CACHE(pathToCacheFile READ_WITH_PREFIX prefix entry1...)\n" " prefix entry1...)\n"
"Load in the values from another cache. This is useful for a project " "Read the cache and store the requested entries in variables with "
"that depends on another project built in a different tree." "their name prefixed with the given prefix. "
"EXCLUDE option can be used to provide a list of entries to be excluded." "This only reads the values, and does not create entries in the local "
"project's cache.\n"
" LOAD_CACHE(pathToCacheFile [EXCLUDE entry1...]\n"
" [INCLUDE_INTERNALS entry1...])\n"
"Load in the values from another cache and store them in the local "
"project's cache as internal entries. This is useful for a project "
"that depends on another project built in a different tree. "
"EXCLUDE option can be used to provide a list of entries to be "
"excluded. "
"INCLUDE_INTERNALS can be used to provide a list of internal entries" "INCLUDE_INTERNALS can be used to provide a list of internal entries"
"to be included. Normally, no internal entries are brougt in.\n" "to be included. Normally, no internal entries are brougt in. Use "
"The READ_WITH_PREFIX form will read the cache and store the requested " "of this form of the command is strongly discouraged, but it is "
"entries in variables with their name prefixed with the given prefix. " "provided for backward compatability.";
"This form only reads the values, and does not create local cache entries.";
} }
cmTypeMacro(cmLoadCacheCommand, cmCommand); cmTypeMacro(cmLoadCacheCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Load a command into a running CMake"; return "Load a command into a running CMake.";
} }
/** /**
@ -67,7 +67,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"LOAD_COMMAND(command)\n"; " LOAD_COMMAND(COMMAND_NAME <loc1> [loc2 ...])\n"
"The given locations are searched for a library whose name is "
"cmCOMMAND_NAME. If found, it is loaded as a module and the command "
"is added to the set of available CMake commands. Usually, TRY_COMPILE "
"is used before this command to compile the module.";
} }
cmTypeMacro(cmLoadCommandCommand, cmCommand); cmTypeMacro(cmLoadCommandCommand, cmCommand);

View File

@ -78,7 +78,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "start defining a Macro."; return "Start recording a macro for later invocation as a command.";
} }
/** /**
@ -87,7 +87,17 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"MACRO(name arg1 arg2 arg3 ...) Starts to define a macro named name that takes arguments named arg1 arg2 arg3... When the macro is invoked the actual arguments passed replace the formal arguments. "; " MACRO(<name> [arg1 [arg2 [arg3 ...]]])\n"
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
" ENDMACRO(<name>)\n"
"Define a macro named <name> that takes arguments named "
"arg1 arg2 arg3 (...). Commands listed after MACRO, "
"but before the matching ENDMACRO, are not invoked until the macro "
"is invoked. When it is invoked, the commands recorded in the "
"macro are first modified by replacing formal parameters (${arg1}) with "
"the arguments passed, and then invoked as normal commands.";
} }
cmTypeMacro(cmMacroCommand, cmCommand); cmTypeMacro(cmMacroCommand, cmCommand);

View File

@ -56,8 +56,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create a directory in the build tree if it does not exist.\n" return "Create a directory on the file system.";
"Parent directories will be created if the do not exist..";
} }
/** /**
@ -66,7 +65,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"MAKE_DIRECTORY(directory)"; " MAKE_DIRECTORY(directory)\n"
"Creates the specified directory. Full paths should be given. Any "
"parent directories that do not exist will also be created. Use with "
"care.";
} }
cmTypeMacro(cmMakeDirectoryCommand, cmCommand); cmTypeMacro(cmMakeDirectoryCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Mark a cmake variable as advanced."; return "Mark cmake cached variables as advanced.";
} }
/** /**
@ -67,12 +67,16 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"MARK_AS_ADVANCED([CLEAR|FORCE]VAR VAR2 VAR... )\n" " MARK_AS_ADVANCED([CLEAR|FORCE] VAR VAR2 VAR...)\n"
"Mark the named variables as advanced. An advanced variable will not be displayed in" "Mark the named cached variables as advanced. An advanced variable "
" any of the cmake GUIs, unless the show advanced option is on. " "will not be displayed in any of the cmake GUIs unless the show "
"If CLEAR is the first argument advanced variables are changed back to unadvanced." "advanced option is on. "
"If FORCE is the first arguement, then the variable is made advanced." "If CLEAR is the first argument advanced variables are changed back "
"If neither FORCE or CLEAR is specified, new values will be marked as advanced, but if the variable already has an advanced state, it will not be changed."; "to unadvanced. "
"If FORCE is the first arguement, then the variable is made advanced. "
"If neither FORCE or CLEAR is specified, new values will be marked as "
"advanced, but if the variable already has an advanced/non-advanced "
"state, it will not be changed.";
} }
cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand); cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand);

View File

@ -60,8 +60,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"MESSAGE([SEND_ERROR | STATUS | FATAL_ERROR] \"message to display\"...)\n" " MESSAGE([SEND_ERROR | STATUS | FATAL_ERROR]\n"
"The arguments are messages to display. If the first argument is SEND_ERROR then an error is raised. If the first argument is STATUS then the message is diaplyed in the progress line for the GUI"; " \"message to display\" ...)\n"
"The arguments are messages to display. If the first argument is "
"SEND_ERROR then an error is raised. If the first argument is "
"STATUS then the message is diaplyed in the progress line for the GUI.";
} }
cmTypeMacro(cmMessageCommand, cmCommand); cmTypeMacro(cmMessageCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Provides an option that the user can optionally select"; return "Provides an option that the user can optionally select.";
} }
/** /**
@ -67,8 +67,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"OPTION(USE_MPI \"help string decribing the option\" [initial value])\n" " OPTION(OPTION_VAR \"help string decribing option\"\n"
"Provide an option for the user to select"; " [initial value])\n"
"Provide an option for the user to select as ON or OFF. If no "
"initial value is provided, OFF is used.";
} }
cmTypeMacro(cmOptionCommand, cmCommand); cmTypeMacro(cmOptionCommand, cmCommand);

View File

@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"OUTPUT_REQUIRED_FILES(srcfile outputfile)\n" " OUTPUT_REQUIRED_FILES(srcfile outputfile)\n"
"Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible."; "Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.";
} }

View File

@ -64,7 +64,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Set a name for the entire project. One argument."; return "Set a name for the entire project.";
} }
/** /**
@ -73,7 +73,7 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"PROJECT(projectname [C++ C Java])\n" " PROJECT(projectname [C++] [C] [Java])\n"
"Sets the name of the project. " "Sets the name of the project. "
"This creates the variables projectname_BINARY_DIR and projectname_SOURCE_DIR. " "This creates the variables projectname_BINARY_DIR and projectname_SOURCE_DIR. "
"Optionally you can specify which languages your project supports. " "Optionally you can specify which languages your project supports. "

View File

@ -69,9 +69,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"QT_WRAP_CPP(resultingLibraryName DestName SourceLists ...)\n" " QT_WRAP_CPP(resultingLibraryName DestName\n"
"Produce moc files for all the .h file listed in the SourceLists.\n" " SourceLists ...)\n"
"The moc files will be added to the library using the DestName\n" "Produce moc files for all the .h file listed in the SourceLists. "
"The moc files will be added to the library using the DestName "
"source list."; "source list.";
} }

View File

@ -69,13 +69,13 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"QT_WRAP_UI(resultingLibraryName HeadersDestName SourcesDestName " " QT_WRAP_UI(resultingLibraryName HeadersDestName\n"
"SourceLists ...)\n" " SourcesDestName SourceLists ...)\n"
"Produce .h and .cxx files for all the .ui file listed " "Produce .h and .cxx files for all the .ui file listed "
"in the SourceLists.\n" "in the SourceLists. "
"The .h files will be added to the library using the HeadersDestName\n" "The .h files will be added to the library using the HeadersDestName"
"source list.\n" "source list. "
"The .cxx files will be added to the library using the SourcesDestName\n" "The .cxx files will be added to the library using the SourcesDestName"
"source list."; "source list.";
} }

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Remove a value from a CMAKE variable"; return "Remove a value from a list in a variable.";
} }
/** /**
@ -67,10 +67,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"REMOVE(VAR VALUE VALUE ...)\n" " REMOVE(VAR VALUE VALUE ...)\n"
"Removes VALUE from the CMAke variable VAR. " "Removes VALUE from the variable VAR. "
"This is typically used to remove entries from a vector " "This is typically used to remove entries from a vector "
"(e.g. semicolon separated list). VALUE is expanded. "; "(e.g. semicolon separated list). VALUE is expanded.";
} }
cmTypeMacro(cmRemoveCommand, cmCommand); cmTypeMacro(cmRemoveCommand, cmCommand);

View File

@ -67,8 +67,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SEPARATE_ARGUMENTS(VARIABLE)\n" " SEPARATE_ARGUMENTS(VARIABLE)\n"
"Convert the value of VARIABLE to a semi-colon separated list. All spaces are replaced with ;"; "Convert the value of VARIABLE to a semi-colon separated list. "
"All spaces are replaced with ';'. This helps with generating "
"command lines.";
} }
cmTypeMacro(cmSeparateArgumentsCommand, cmCommand); cmTypeMacro(cmSeparateArgumentsCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Set a CMAKE variable to a value"; return "Set a CMAKE variable to a given value.";
} }
/** /**
@ -67,16 +67,16 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SET(VAR [VALUE] [CACHE TYPE DOCSTRING [FORCE]])\n" " SET(VAR [VALUE] [CACHE TYPE DOCSTRING [FORCE]])\n"
"Within CMAKE sets VAR to the value VALUE. VALUE is expanded before VAR " "Within CMAKE sets VAR to the value VALUE. VALUE is expanded before VAR "
"is set to it. If CACHE is present, then the VAR is put in the cache." "is set to it. If CACHE is present, then the VAR is put in the cache. "
" TYPE and DOCSTRING are required. TYPE may be BOOL, PATH, FILEPATH, STRING, INTERNAL, " "TYPE and DOCSTRING are required. TYPE may be BOOL, PATH, FILEPATH, "
"or STATIC. If TYPE is INTERNAL, then the " "STRING, INTERNAL, or STATIC. If TYPE is INTERNAL, then the "
" VALUE is Always written into the cache, replacing any values " "VALUE is Always written into the cache, replacing any values "
"existing in the cache. If it is not a CACHE VAR, then this always " "existing in the cache. If it is not a CACHE VAR, then this always "
"writes into the current makefile. The FORCE option will overwrite" "writes into the current makefile. The FORCE option will overwrite"
"the CACHE value removing any changes from the USER.\n" "the CACHE value removing any changes from the USER.\n"
"An optional syntax is SET(VAR VALUE1 ... VALUEN).\n" " SET(VAR VALUE1 ... VALUEN).\n"
"In this case VAR is set to a ; separated list of values."; "In this case VAR is set to a ; separated list of values.";
} }

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Set attributes for a specific list of files."; return "Source files can have properties that affect how they are built.";
} }
/** /**
@ -53,16 +53,30 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SET_SOURCE_FILES_PROPERTIES(file1 file2 .. filen PROPERTIES prop1 value1 prop2 value2 ... prop2 valuen)" " SET_SOURCE_FILES_PROPERTIES(file1 file2 ...\n"
"Set properties on a file. The syntax for the command is to list all the files you want " " PROPERTIES prop1 value1\n"
"to change, and then provide the values you want to set next. You can make up your own properties as well. " " prop2 value2 ...)\n"
"Set properties on a file. The syntax for the command is to list all "
"the files you want "
"to change, and then provide the values you want to set next. You "
"can make up your own properties as well. "
"The following are used by CMake. " "The following are used by CMake. "
"The ABSTRACT flag (boolean) appears to have some effect on the VTK wrapper commands. " "The ABSTRACT flag (boolean) appears to have some effect on the VTK "
"If WRAP_EXCLUDE (boolean) is true then the wrapping commands (FLTKWrapUI, QTWrapCC, QTWrapUI, VTKMakeInstantiator, VTKWrapJava, VTKWrapPython, and VTKWrapTcl) will ignore this file. " "wrapper commands. "
"If GENERATED (boolean) is true then it is not an error if this source file does not exist when it is added to a target. Obviously, it must be created (presumably by a custom command) before the target is built. " "If WRAP_EXCLUDE (boolean) is true then the wrapping commands "
"If the HEADER_FILE_ONLY (boolean) property is true then dependency information is not created for that file (this is set automatically, based on the file's name's extension and is probably only used by Makefiles). " "(FLTKWrapUI, QTWrapCC, QTWrapUI, VTKMakeInstantiator, VTKWrapJava, "
"VTKWrapPython, and VTKWrapTcl) will ignore this file. "
"If GENERATED (boolean) is true then it is not an error if this "
"source file does not exist when it is added to a target. Obviously, "
"it must be created (presumably by a custom command) before the "
"target is built. "
"If the HEADER_FILE_ONLY (boolean) property is true then dependency "
"information is not created for that file (this is set "
"automatically, based on the file's name's extension and is probably "
"only used by Makefiles). "
"OBJECT_DEPENDS (string) adds dependencies to the object file. " "OBJECT_DEPENDS (string) adds dependencies to the object file. "
"COMPILE_FLAGS (string) is passed to the compiler as additional command line arguments when the source file is compiled. "; "COMPILE_FLAGS (string) is passed to the compiler as additional "
"command line arguments when the source file is compiled. ";
} }

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Set attributes for a specific list of files."; return "Targets can have properties that affect how they are built.";
} }
/** /**
@ -53,13 +53,21 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SET_TARGET_PROPERTIES(target1 target2 .. filen PROPERTIES prop1 value1 prop2 value2 ... prop2 valuen)" " SET_TARGET_PROPERTIES(target1 target2 ...\n"
"Set properties on a target. The syntax for the command is to list all the files you want " " PROPERTIES prop1 value1\n"
"to change, and then provide the values you want to set next. Properties that cmake knows about are PREFIX and SUFFIX for Unix systems and libraries. CMake also knows about LINK_FLAGS, which can be used to add extra flags to the link step of a target." " prop2 value2 ...)\n"
"DEFINE_SYMBOL is a symbol that is defined when compiling C or C++ sources. " "Set properties on a target. The syntax for the command is to "
"list all the files you want "
"to change, and then provide the values you want to set next. "
"Properties that cmake knows about are PREFIX and SUFFIX for Unix "
"systems and libraries. CMake also knows about LINK_FLAGS, which "
"can be used to add extra flags to the link step of a target."
"DEFINE_SYMBOL is a symbol that is defined when compiling C or C++ "
"sources. "
"If not set here then it is set to target_EXPORTS by default " "If not set here then it is set to target_EXPORTS by default "
"(with some substitutions if target is not a valid C identifier). " "(with some substitutions if target is not a valid C identifier). "
"You can use and prop value pair you want and extract it later with the GET_TARGET_PROPERTY command."; "You can use and prop value pair you want and extract it later with "
"the GET_TARGET_PROPERTY command.";
} }
cmTypeMacro(cmSetTargetPropertiesCommand, cmCommand); cmTypeMacro(cmSetTargetPropertiesCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Set a CMAKE variable to the name of this computer."; return "Set the given variable to the name of the computer.";
} }
/** /**
@ -67,8 +67,7 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SITE_NAME(NAME)\n" " SITE_NAME(variable)\n";
"Within CMAKE sets NAME to the host name of the computer.";
} }
cmTypeMacro(cmSiteNameCommand, cmCommand); cmTypeMacro(cmSiteNameCommand, cmCommand);

View File

@ -67,7 +67,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Add a list of source files, associate them with a NAME."; return "Deprecated. Use SET to list sources in a variable.";
} }
/** /**
@ -76,7 +76,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SOURCE_FILES(NAME file1 file2 ... [ GENERATED generated_file1 ... ])"; " SOURCE_FILES(variable file1 file2 ...\n"
" [ GENERATED generated_file1 ... ])\n"
"Adds the given sources to the list in the given variable. Sources "
"listed after GENERATED will be given the GENERATED property. See "
"SET_SOURCE_FILES_PROPERTIES to add the GENERATED property to any "
"source.";
} }
cmTypeMacro(cmSourceFilesCommand, cmCommand); cmTypeMacro(cmSourceFilesCommand, cmCommand);

View File

@ -58,7 +58,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Remove a list of source files - associated with NAME."; return "Remove sources from those listed in the given variable.";
} }
/** /**
@ -69,7 +69,9 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SOURCE_FILES_REMOVE(NAME file1 file2 ...)"; " SOURCE_FILES_REMOVE(variable file1 file2 ...)\n"
"Removes the sources specified from the sources listed in the given "
"variable.";
} }
cmTypeMacro(cmSourceFilesRemoveCommand, cmCommand); cmTypeMacro(cmSourceFilesRemoveCommand, cmCommand);

View File

@ -71,9 +71,9 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SOURCE_GROUP(name regex)\n" " SOURCE_GROUP(name regex)\n"
"Defines a new source group. Any file whose name matches the regular\n" "Defines a new source group. Any file whose name matches the regular "
"expression will be placed in this group. The LAST regular expression\n" "expression will be placed in this group. The LAST regular expression "
"of all defined SOURCE_GROUPs that matches the file will be selected."; "of all defined SOURCE_GROUPs that matches the file will be selected.";
} }

View File

@ -60,21 +60,28 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"STRING(REGEX MATCH <regular_expression> <output variable> <input> [<input>...])\n" " STRING(REGEX MATCH <regular_expression>\n"
"STRING(REGEX MATCHALL <regular_expression> <output variable> <input> [<input>...])\n" " <output variable> <input> [<input>...])\n"
"STRING(REGEX REPLACE <regular_expression> <replace_expression> <output variable> <input> [<input>...])\n" " STRING(REGEX MATCHALL <regular_expression>\n"
"STRING(COMPARE EQUAL <string1> <string2> <output variable>)\n" " <output variable> <input> [<input>...])\n"
"STRING(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n" " STRING(REGEX REPLACE <regular_expression>\n"
"STRING(COMPARE LESS <string1> <string2> <output variable>)\n" " <replace_expression> <output variable>\n"
"STRING(COMPARE GREATER <string1> <string2> <output variable>)\n" " <input> [<input>...])\n"
"STRING(ASCII <number> [<number> ...] <output variable>)\n" " STRING(COMPARE EQUAL <string1> <string2> <output variable>)\n"
"REGEX MATCH will match the regular expression once and store the match in the output variable.\n" " STRING(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n"
"REGEX MATCHALL will match the regular expression as many times as possible and store the matches\n" " STRING(COMPARE LESS <string1> <string2> <output variable>)\n"
" in the output variable as a list.\n" " STRING(COMPARE GREATER <string1> <string2> <output variable>)\n"
"REGEX REPLACE will match the regular expression as many times as possible and substitute the\n" " STRING(ASCII <number> [<number> ...] <output variable>)\n"
" replacement expression for the match in the output.\n" "REGEX MATCH will match the regular expression once and store the "
"COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and store true or false in the output variable.\n" "match in the output variable.\n\n"
"ASCII will convert all numbers into corresponding ASCII characters.\n"; "REGEX MATCHALL will match the regular expression as many times as "
"possible and store the matches in the output variable as a list.\n\n"
"REGEX REPLACE will match the regular expression as many times as "
"possible and substitute the replacement expression for the match "
"in the output.\n\n"
"COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and "
"store true or false in the output variable.\n\n"
"ASCII will convert all numbers into corresponding ASCII characters.";
} }
cmTypeMacro(cmStringCommand, cmCommand); cmTypeMacro(cmStringCommand, cmCommand);

View File

@ -63,7 +63,7 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SUBDIRS(dir1 dir2 ...)\n" " SUBDIRS(dir1 dir2 ...)\n"
"Add a list of subdirectories to the build. " "Add a list of subdirectories to the build. "
"This will cause any CMakeLists.txt files in the sub directories " "This will cause any CMakeLists.txt files in the sub directories "
"to be processed by CMake."; "to be processed by CMake.";

View File

@ -63,8 +63,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"SUBDIR_DEPENDS(subdir dep1 dep2 ...)\n" " SUBDIR_DEPENDS(subdir dep1 dep2 ...)\n"
"Does not do anything. This command used to help projects order\n" "Does not do anything. This command used to help projects order "
"parallel builds correctly. This functionality is now automatic."; "parallel builds correctly. This functionality is now automatic.";
} }

View File

@ -55,8 +55,7 @@ public:
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return return
"Specify a list of libraries to be linked into\n" "Link a target to given libraries.";
"executables or shared objects.";
} }
/** /**
@ -65,10 +64,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"TARGET_LINK_LIBRARIES(target library1 <debug | optimized> library2 ...)\n" " TARGET_LINK_LIBRARIES(target library1\n"
"Specify a list of libraries to be linked into the specified target\n" " <debug | optimized> library2\n"
"The debug and optimized strings may be used to indicate that\n" " ...)\n"
"the next library listed is to be used only for that specific\n" "Specify a list of libraries to be linked into the specified target "
"The debug and optimized strings may be used to indicate that "
"the next library listed is to be used only for that specific "
"type of build"; "type of build";
} }

View File

@ -52,7 +52,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Try compiling some code"; return "Try compiling some code.";
} }
/** /**
@ -75,12 +75,14 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"TRY_COMPILE(RESULT_VAR bindir srcdir projectName <CMAKE_FLAGS <Flags>>)\n" " TRY_COMPILE(RESULT_VAR bindir srcdir\n"
"Try compiling a program. Return the success or failure in RESULT_VAR " " projectName <CMAKE_FLAGS <Flags>>)\n"
"Try compiling a program. Return the success or failure in RESULT_VAR. "
"If <target name> is specified then build just that target " "If <target name> is specified then build just that target "
"otherwise the all or ALL_BUILD target is built.\n" "otherwise the all or ALL_BUILD target is built.\n"
"TRY_COMPILE(RESULT_VAR bindir srcfile\n" " TRY_COMPILE(RESULT_VAR bindir srcfile\n"
" <CMAKE_FLAGS <Flags>> <COMPILE_DEFINITIONS <flags> ...>)\n" " <CMAKE_FLAGS <Flags>>\n"
" <COMPILE_DEFINITIONS <flags> ...>)\n"
"Try compiling a srcfile. Return the success or failure in RESULT_VAR. " "Try compiling a srcfile. Return the success or failure in RESULT_VAR. "
"CMAKE_FLAGS can be used to pass -DVAR:TYPE=VALUE flags to cmake. The " "CMAKE_FLAGS can be used to pass -DVAR:TYPE=VALUE flags to cmake. The "
"COMPILE_DEFINITIONS are -Ddefinition that will be passed to the " "COMPILE_DEFINITIONS are -Ddefinition that will be passed to the "

View File

@ -55,17 +55,19 @@ public:
return "Try compiling and then running some code."; return "Try compiling and then running some code.";
} }
/** /**
* More documentation. * More documentation.
*/ */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"TRY_RUN(RUN_RESULT_VAR COMPILE_RESULT_VAR bindir srcfile <CMAKE_FLAGS <Flags>> <COMPILE_DEFINITIONS <flags>> <ARGUMENTS <arg1> <arg2>...>)\n" " TRY_RUN(RUN_RESULT_VAR COMPILE_RESULT_VAR\n"
" bindir srcfile <CMAKE_FLAGS <Flags>>\n"
" <COMPILE_DEFINITIONS <flags>>\n"
" <ARGUMENTS <arg1> <arg2>...>)\n"
"Try compiling a srcfile. Return the success or failure in " "Try compiling a srcfile. Return the success or failure in "
"COMPILE_RESULT_VAR. Then if the compile succeeded, run the " "COMPILE_RESULT_VAR. Then if the compile succeeded, run the "
"executable and return the result in RUN_RESULT_VAR. "; "executable and return the result in RUN_RESULT_VAR.";
} }
cmTypeMacro(cmTryRunCommand, cmCommand); cmTypeMacro(cmTryRunCommand, cmCommand);

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create copies of mesa headers for use in combination with system gl."; return "Copy mesa headers for use in combination with system GL.";
} }
/** /**
@ -62,8 +62,11 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"USE_MANGLED_MESA(PATH_TO_MESA OUTPUT_DIRECTORY)\n" " USE_MANGLED_MESA(PATH_TO_MESA OUTPUT_DIRECTORY)\n"
"The path to mesa includes, should contain gl_mangle.h. "; "The path to mesa includes, should contain gl_mangle.h. "
"The mesa headers are copied to the specified output directory. "
"This allows mangled mesa headers to override other GL headers by "
"being added to the include directory path earlier.";
} }
protected: protected:

View File

@ -71,11 +71,12 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"UTILITY_SOURCE(cache_entry executable_name path_to_source [file1 file2 ...])\n" " UTILITY_SOURCE(cache_entry executable_name\n"
"When a third-party utility's source is included in the distribution,\n" " path_to_source [file1 file2 ...])\n"
"this command specifies its location and name. The cache entry will\n" "When a third-party utility's source is included in the distribution, "
"not be set unless the path_to_source and all listed files exist. It\n" "this command specifies its location and name. The cache entry will "
"is assumed that the source tree of the utility will have been built\n" "not be set unless the path_to_source and all listed files exist. It "
"is assumed that the source tree of the utility will have been built "
"before it is needed."; "before it is needed.";
} }

View File

@ -45,34 +45,35 @@ public:
/** Succinct documentation. */ /** Succinct documentation. */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Register classes for creation by vtkInstantiator"; return "Deprecated. For use only in VTK 4.0.";
} }
/** More documentation. */ /** More documentation. */
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"VTK_MAKE_INSTANTIATOR(className outSourceList\n" " VTK_MAKE_INSTANTIATOR(className outSourceList\n"
" src-list1 [src-list2 ..]\n" " src-list1 [src-list2 ..]\n"
" EXPORT_MACRO exportMacro\n" " EXPORT_MACRO exportMacro\n"
" [HEADER_LOCATION dir] [GROUP_SIZE groupSize]\n" " [HEADER_LOCATION dir]\n"
" [GROUP_SIZE groupSize]\n"
" [INCLUDES [file1 file2 ..]])\n" " [INCLUDES [file1 file2 ..]])\n"
"Generates a new class with the given name and adds its files to the\n" "Generates a new class with the given name and adds its files to the "
"given outSourceList. It registers the classes from the other given\n" "given outSourceList. It registers the classes from the other given "
"source lists with vtkInstantiator when it is loaded. The output\n" "source lists with vtkInstantiator when it is loaded. The output "
"source list should be added to the library with the classes it\n" "source list should be added to the library with the classes it "
"registers.\n" "registers. "
"The EXPORT_MACRO argument must be given and followed by the export\n" "The EXPORT_MACRO argument must be given and followed by the export "
"macro to use when generating the class (ex. VTK_COMMON_EXPORT).\n" "macro to use when generating the class (ex. VTK_COMMON_EXPORT). "
"The HEADER_LOCATION option must be followed by a path. It specifies\n" "The HEADER_LOCATION option must be followed by a path. It specifies "
"the directory in which to place the generated class's header file.\n" "the directory in which to place the generated class's header file. "
"The generated class implementation files always go in the build\n" "The generated class implementation files always go in the build "
"directory corresponding to the CMakeLists.txt file containing\n" "directory corresponding to the CMakeLists.txt file containing "
"the command. This is the default location for the header.\n" "the command. This is the default location for the header. "
"The INCLUDES option can be followed by a list of zero or more files.\n" "The INCLUDES option can be followed by a list of zero or more files. "
"These files will be #included by the generated instantiator header,\n" "These files will be #included by the generated instantiator header, "
"and can be used to gain access to the specified exportMacro in the\n" "and can be used to gain access to the specified exportMacro in the "
" C++ code."; "C++ code.";
} }
cmTypeMacro(cmVTKMakeInstantiatorCommand, cmCommand); cmTypeMacro(cmVTKMakeInstantiatorCommand, cmCommand);

View File

@ -60,7 +60,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create Java Wrappers."; return "Deprecated. For use only in VTK 4.0.";
} }
/** /**
@ -69,7 +69,9 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"VTK_WRAP_JAVA(resultingLibraryName SourceListName SourceLists ...)"; " VTK_WRAP_JAVA(resultingLibraryName SourceListName\n"
" class1 class2 ...)\n"
"Create Java wrappers for VTK classes.";
} }
private: private:

View File

@ -60,7 +60,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create Python Wrappers."; return "Deprecated. For use only in VTK 4.0.";
} }
/** /**
@ -69,7 +69,9 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"VTK_WRAP_PYTHON(resultingLibraryName SourceListName SourceLists ...)"; " VTK_WRAP_PYTHON(resultingLibraryName SourceListName\n"
" class1 class2 ...)\n"
"Create Python wrappers for VTK classes.";
} }
/** /**

View File

@ -61,7 +61,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Create Tcl Wrappers for VTK classes."; return "Deprecated. For use only in VTK 4.0.";
} }
/** /**
@ -70,7 +70,10 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"VTK_WRAP_TCL(resultingLibraryName [SOURCES] SourceListName SourceLists ... [COMMANDS CommandName1 CommandName2 ...])"; " VTK_WRAP_TCL(resultingLibraryName [SOURCES]\n"
" SourceListName class1 class2 ...\n"
" [COMMANDS CommandName1 CommandName2 ...])\n"
"Create Tcl wrappers for VTK classes.";
} }
/** /**

View File

@ -53,7 +53,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Display an error message ."; return "Assert satisfaction of an option's required variables.";
} }
/** /**
@ -62,16 +62,17 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"VARIABLE_REQUIRES(TEST_VARIABLE RESULT_VARIABLE " " VARIABLE_REQUIRES(TEST_VARIABLE RESULT_VARIABLE\n"
"REQUIRED_VARIABLE1 REQUIRED_VARIABLE2 ...) " " REQUIRED_VARIABLE1\n"
" REQUIRED_VARIABLE2 ...)\n"
"The first argument (TEST_VARIABLE) is the name of the variable to be " "The first argument (TEST_VARIABLE) is the name of the variable to be "
"tested, if that variable is false nothing else is done. If " "tested, if that variable is false nothing else is done. If "
"TEST_VARIABLE is true, then " "TEST_VARIABLE is true, then "
"the next arguemnt (RESULT_VARIABLE) is a vairable that is set to true " "the next arguemnt (RESULT_VARIABLE) is a vairable that is set to true "
"if all the " "if all the required variables are set."
"required variables are set."
"The rest of the arguments are variables that must be true or not " "The rest of the arguments are variables that must be true or not "
"set to NOTFOUND to avoid an error. "; "set to NOTFOUND to avoid an error. If any are not true, an error "
"is reported.";
} }
cmTypeMacro(cmVariableRequiresCommand, cmCommand); cmTypeMacro(cmVariableRequiresCommand, cmCommand);

View File

@ -44,7 +44,7 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "A list of classes, to exclude from wrapping."; return "Deprecated. See SET_SOURCE_FILES_PROPERTIES.";
} }
/** /**
@ -53,7 +53,8 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"WRAP_EXCLUDE_FILES(file1 file2 ..)"; " WRAP_EXCLUDE_FILES(file1 file2 ...)\n"
"Marks files with the WRAP_EXCLUDE property.";
} }
cmTypeMacro(cmWrapExcludeFilesCommand, cmCommand); cmTypeMacro(cmWrapExcludeFilesCommand, cmCommand);

View File

@ -60,7 +60,7 @@ public:
virtual const char* GetFullDocumentation() virtual const char* GetFullDocumentation()
{ {
return return
"WRITE_FILE(filename \"message to write\"... [APPEND])\n" " WRITE_FILE(filename \"message to write\"... [APPEND])\n"
"The first argument is the file name, the rest of the arguments are " "The first argument is the file name, the rest of the arguments are "
"messages to write. If the argument APPEND is specified, then " "messages to write. If the argument APPEND is specified, then "
"the message will be appended."; "the message will be appended.";