ENH: better format for ADD_SUBDIRECTORY command

This commit is contained in:
Ken Martin
2005-09-12 13:46:16 -04:00
parent 74918bfc87
commit 4cb9d2fd96
2 changed files with 55 additions and 24 deletions

View File

@@ -62,16 +62,17 @@ public:
virtual const char* GetFullDocumentation()
{
return
" ADD_SUBDIRECTORY(binary_dir [source_dir]\n"
" ADD_SUBDIRECTORY(source_dir [binary_dir] \n"
" [EXCLUDE_FROM_ALL])\n"
"Add a subdirectory to the build. The binary_dir specifies the "
"directory in which to store the build files. If it is a relative "
"path it will be evaluated with respect to the current output "
"Add a subdirectory to the build. The source_dir specifies the "
"directory in which the source CmakeLists.txt and code files are "
"located. If it is a relative "
"path it will be evaluated with respect to the current "
"directory (the typical usage), but it may also be an absolute path. "
"The source_dir specifies the directory in which to find the source "
"The binary_dir specifies the directory in which to place the output "
"files. If it is a relative path it will be evaluated with respect "
"to the current source directory, but it may also be an absolute "
"path. If source_dir is not specified the value of binary_dir, "
"to the current otuput directory, but it may also be an absolute "
"path. If binary_dir is not specified, the value of source_dir, "
"before expanding any relative path, will be used (the typical usage). "
"The CMakeLists.txt file in the specified source directory will "
"be processed immediately by CMake before processing in the current "