... | ... | @@ -3,7 +3,7 @@ |
|
|
|
|
|
----
|
|
|
|
|
|
[Back](CMake_User_Contributed_Macros "wikilink")
|
|
|
[Back](Contrib "wikilink")
|
|
|
|
|
|
## Definition
|
|
|
|
... | ... | @@ -19,7 +19,7 @@ below. |
|
|
|
|
|
The PARSE_ARGUMENTS macro, defined below, can be used by other macros
|
|
|
to parse arguments defined in this way. Note that this macro relies on
|
|
|
the [LIST_CONTAINS](CMakeMacroListOperations#LIST_CONTAINS "wikilink")
|
|
|
the [LIST_CONTAINS](contrib/macros/ListOperations#LIST_CONTAINS "wikilink")
|
|
|
command.
|
|
|
|
|
|
MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
|
... | ... | @@ -173,7 +173,7 @@ for a macro to parse. Of course, `PARSE_ARGUMENTS` will do it for us. |
|
|
Here is a vacuous implementation of `ADD_PLUGIN`. It uses
|
|
|
`PARSE_ARGUMENTS` to parse the argument specification above, and then
|
|
|
simply prints out each argument list and option. Note that this example
|
|
|
uses the [CAR and CDR](CMakeMacroListOperations#CAR_and_CDR "wikilink")
|
|
|
uses the [CAR and CDR](contrib/macros/ListOperations#CAR_and_CDR "wikilink")
|
|
|
macros.
|
|
|
|
|
|
MACRO(ADD_PLUGIN)
|
... | ... | @@ -258,7 +258,7 @@ Depends: MyAppCore;MyAppDefaultComponents</code></pre></td> |
|
|
|
|
|
-----
|
|
|
|
|
|
[Back](CMake_User_Contributed_Macros "wikilink")
|
|
|
[Back](Contrib "wikilink")
|
|
|
|
|
|
|
|
|
----
|
... | ... | |