ENH:Tweaks to dump documentation
This commit is contained in:
parent
85d16dbd35
commit
cacd6d1604
2
README
2
README
|
@ -91,7 +91,6 @@ Rules: (Generated with cmDumpDocumentation)
|
||||||
|
|
||||||
PROJECT - Set a name for the entire project. One argument.
|
PROJECT - Set a name for the entire project. One argument.
|
||||||
Usage: PROJECT(projectname)
|
Usage: PROJECT(projectname)
|
||||||
Set the name for the entire project. This takes one argument.
|
|
||||||
|
|
||||||
SOURCE_FILES - Add a list of source files.
|
SOURCE_FILES - Add a list of source files.
|
||||||
Usage: SOURCE_FILES(file1 file2 ...)
|
Usage: SOURCE_FILES(file1 file2 ...)
|
||||||
|
@ -123,6 +122,7 @@ Rules: (Generated with cmDumpDocumentation)
|
||||||
WIN32_LIBRARIES - Add libraries that are only used for Win32 programs.
|
WIN32_LIBRARIES - Add libraries that are only used for Win32 programs.
|
||||||
Usage: WIN32_LIBRARIES(library -lm ...)
|
Usage: WIN32_LIBRARIES(library -lm ...)
|
||||||
|
|
||||||
|
|
||||||
USING / BUILDING WITH CMAKE
|
USING / BUILDING WITH CMAKE
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "A list of abstract classes, useful for wrappers.";
|
return "A list of abstract classes, useful for wrappers.";
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Longer documentation.
|
* Longer documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"ABSTRACT_FILES(file1 file2 ..)";
|
"ABSTRACT_FILES(file1 file2 ..)";
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add an extra target to the build system.";
|
return "Add an extra target to the build system.";
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"ADD_TARGET(Name \"command to run\")";
|
"ADD_TARGET(Name \"command to run\")";
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add all the source files found in the specified\n"
|
return "Add all the source files found in the specified\n"
|
||||||
"directory to the build.";
|
"directory to the build.";
|
||||||
|
@ -68,7 +68,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"AUX_SOURCE_DIRECTORY(dir)";
|
"AUX_SOURCE_DIRECTORY(dir)";
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add a list of executables files.";
|
return "Add a list of executables files.";
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"EXECUTABLES(file1 file2 ...)";
|
"EXECUTABLES(file1 file2 ...)";
|
||||||
|
|
|
@ -63,7 +63,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Find an include path.";
|
return "Find an include path.";
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"FIND_INCLUDE(DEFINE try1 try2 ...)";
|
"FIND_INCLUDE(DEFINE try1 try2 ...)";
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Find a library.";
|
return "Find a library.";
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"FIND_LIBRARY(DEFINE try1 try2)";
|
"FIND_LIBRARY(DEFINE try1 try2)";
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Find an executable program.";
|
return "Find an executable program.";
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"FIND_PROGRAM(NAME executable1 executable2 ...)";
|
"FIND_PROGRAM(NAME executable1 executable2 ...)";
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add include directories to the build.";
|
return "Add include directories to the build.";
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"INCLUDE_DIRECTORIES(dir1 dir2 ...)";
|
"INCLUDE_DIRECTORIES(dir1 dir2 ...)";
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Set a name for a library.";
|
return "Set a name for a library.";
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"LIBRARY(libraryname)";
|
"LIBRARY(libraryname)";
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Specify link directories.";
|
return "Specify link directories.";
|
||||||
}
|
}
|
||||||
|
@ -72,11 +72,11 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"Specify the paths to the libraries that will be linked in.\n"
|
|
||||||
"LINK_DIRECTORIES(directory1 directory2 ...)\n"
|
"LINK_DIRECTORIES(directory1 directory2 ...)\n"
|
||||||
|
"Specify the paths to the libraries that will be linked in.\n"
|
||||||
"The directories can use built in definitions like \n"
|
"The directories can use built in definitions like \n"
|
||||||
"CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.";
|
"CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.";
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,17 +63,17 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"Specify a list of libraries to be linked into executables or \n"
|
"Specify a list of libraries to be linked into\n"
|
||||||
"shared objects.";
|
"executables or shared objects.";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"LINK_LIBRARIES(library1 library2)\n"
|
"LINK_LIBRARIES(library1 library2)\n"
|
||||||
|
|
|
@ -393,8 +393,8 @@ int cmMakefile::DumpDocumentationToFile(const char *fileName)
|
||||||
j != m_RuleMakers.end(); ++j)
|
j != m_RuleMakers.end(); ++j)
|
||||||
{
|
{
|
||||||
name = (*j).second->GetName();
|
name = (*j).second->GetName();
|
||||||
terse = (*j).second->TerseDocumentation();
|
terse = (*j).second->GetTerseDocumentation();
|
||||||
full = (*j).second->FullDocumentation();
|
full = (*j).second->GetFullDocumentation();
|
||||||
f << name << " - " << terse << std::endl
|
f << name << " - " << terse << std::endl
|
||||||
<< "Usage: " << full << std::endl << std::endl;
|
<< "Usage: " << full << std::endl << std::endl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Set a name for the entire project. One argument.";
|
return "Set a name for the entire project. One argument.";
|
||||||
}
|
}
|
||||||
|
@ -65,11 +65,10 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"PROJECT(projectname)\n"
|
"PROJECT(projectname)\n";
|
||||||
"Set the name for the entire project. This takes one argument.";
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -81,12 +81,12 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation() = 0;
|
virtual const char* GetTerseDocumentation() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation() = 0;
|
virtual const char* GetFullDocumentation() = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable the rule.
|
* Enable the rule.
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add a list of source files if the required \n"
|
return "Add a list of source files if the required \n"
|
||||||
"variables are set.";
|
"variables are set.";
|
||||||
|
@ -68,7 +68,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"SOURCE_FILES_REQUIRE(var1 var2 ... SOURCES_BEGIN file1 file2 ...)";
|
"SOURCE_FILES_REQUIRE(var1 var2 ... SOURCES_BEGIN file1 file2 ...)";
|
||||||
|
|
|
@ -61,7 +61,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add a list of source files.";
|
return "Add a list of source files.";
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"SOURCE_FILES(file1 file2 ...)";
|
"SOURCE_FILES(file1 file2 ...)";
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add a list of subdirectories to the build.";
|
return "Add a list of subdirectories to the build.";
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"SUBDIRS(dir1 dir2 ...)\n"
|
"SUBDIRS(dir1 dir2 ...)\n"
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add a list of executables files that are run as tests.";
|
return "Add a list of executables files that are run as tests.";
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"TESTS(file1 file2 ...)";
|
"TESTS(file1 file2 ...)";
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add -D flags to the command line for Unix only.";
|
return "Add -D flags to the command line for Unix only.";
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"UNIX_DEFINES(-DFOO -DBAR)\n"
|
"UNIX_DEFINES(-DFOO -DBAR)\n"
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add libraries that are only used for Unix programs.";
|
return "Add libraries that are only used for Unix programs.";
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"UNIX_LIBRARIES(library -lm ...)";
|
"UNIX_LIBRARIES(library -lm ...)";
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add -D define flags to command line for Win32 environments.";
|
return "Add -D define flags to command line for Win32 environments.";
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"WIN32_DEFINES(-DFOO -DBAR ...)\n"
|
"WIN32_DEFINES(-DFOO -DBAR ...)\n"
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Succinct documentation.
|
* Succinct documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* TerseDocumentation()
|
virtual const char* GetTerseDocumentation()
|
||||||
{
|
{
|
||||||
return "Add libraries that are only used for Win32 programs.";
|
return "Add libraries that are only used for Win32 programs.";
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* More documentation.
|
* More documentation.
|
||||||
*/
|
*/
|
||||||
virtual const char* FullDocumentation()
|
virtual const char* GetFullDocumentation()
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
"WIN32_LIBRARIES(library -lm ...)";
|
"WIN32_LIBRARIES(library -lm ...)";
|
||||||
|
|
Loading…
Reference in New Issue