Documentation: What is the format of the cmake command defined?
I am confused by the command format of cmake manual and no explanation was found. Like the command example, as shown below:
1.install({FILES | PROGRAMS} <file>... [...])
2.include_directories([AFTER|BEFORE] [SYSTEM] dir1 [dir2 ...])
3.build_command(<variable> [CONFIGURATION <config>] [TARGET <target>] [PROJECT_NAME <projname>] # legacy, causes warning )
4.define_property(<GLOBAL | DIRECTORY | TARGET | SOURCE | TEST | VARIABLE | CACHED_VARIABLE> PROPERTY <name> [INHERITED] BRIEF_DOCS <brief-doc> [docs...] FULL_DOCS <full-doc> [docs...])
5.export(EXPORT <export-name> [NAMESPACE <namespace>] [FILE <filename>])
6.include_external_msproject(projectname location [TYPE projectTypeGUID] [GUID projectGUID] [PLATFORM platformName] dep1 dep2 ...)
first: How to distinguish the different brackets of keywords? It is required, optional or other mean.
1.{FILES | PROGRAMS}
vs2.[AFTER|BEFORE]
vs 4.<GLOBAL | DIRECTORY | TARGET | SOURCE | TEST | VARIABLE | CACHED_VARIABLE>
second: what's the difference no brackets wrap?
6.projectname location
In a word, are there any specific explanations or by what convention?
Thanks.