13 | | |
| 13 | == CMake == |
| 14 | * Use spaces, not tabs. |
| 15 | * Four spaces as indent. |
| 16 | * Place one space between control statements and their parentheses. For eg, if (), else (), elseif (), endif (), foreach (), endforeach (), while (), endwhile (), break (). |
| 17 | * Do not place spaces between function and macro statements and their parentheses. For eg, macro(), endmacro(), function(), endfunction(). |
| 18 | * Do not place spaces between a command or function or macro and its parentheses, or between a parenthesis and its content. For eg, message("testing") not message( "testing") or message ("testing" ) |
| 19 | * No space at line ending. |
| 20 | * Lowercase when call commands macros and functions. For eg, add_executable() not ADD_EXECUTABLE(), set() not SET(). |