| 1 | // cmakedefine with multi-word string value (truthy) |
| 2 | #cmakedefine MULTI_WORD "hello world" |
| 3 | |
| 4 | // cmakedefine with multi-word string value (falsy) |
| 5 | #cmakedefine MULTI_WORD_FALSE "hello world" |
| 6 | |
| 7 | // cmakedefine with no replacement value (truthy) |
| 8 | #cmakedefine NO_VALUE |
| 9 | |
| 10 | // cmakedefine with no replacement value (falsy) |
| 11 | #cmakedefine NO_VALUE_FALSE |
| 12 | |
| 13 | // cmakedefine01 with underscored variable names (truthy) |
| 14 | #cmakedefine01 WITH_UNDERSCORE_TRUE |
| 15 | |
| 16 | // cmakedefine01 with underscored variable names (falsy) |
| 17 | #cmakedefine01 WITH_UNDERSCORE_FALSE |
| 18 | |
| 19 | // cmakedefine with leading/trailing underscores (truthy) |
| 20 | #cmakedefine _LEADING 1 |
| 21 | #cmakedefine TRAILING_ 1 |
| 22 | |
| 23 | // cmakedefine01 with leading/trailing underscores (truthy) |
| 24 | #cmakedefine01 _UNDER_01 |
| 25 | #cmakedefine01 UNDER_01_ |
| 26 | |
| 27 | // cmakedefine with @ substitution in the replacement value (truthy) |
| 28 | #cmakedefine SUBST_VAL @STRING@ |
| 29 | |
| 30 | // cmakedefine with @ substitution in the replacement value (falsy) |
| 31 | #cmakedefine SUBST_VAL_FALSE @STRING@ |
| 32 | |
| 33 | // cmakedefine with @ substitution as the variable name |
| 34 | #cmakedefine @VAR_NAME@ custom_val |
| 35 | |
| 36 | // cmakedefine with dollar-curly substitution as the variable name |
| 37 | #cmakedefine ${VAR_NAME} custom_val |
| 38 | |
| 39 | // @ and $ as literal config values |
| 40 | @AT_SIGN@ |
| 41 | ${DOLLAR_SIGN} |