Control flow
You can evaluates the condition argument of the if clause according to the condition syntax described below. If the result is true, then the commands in the if block are executed. Otherwise, optional elseif blocks are processed in the same way. Finally, if no condition is true, commands in the optional else block are executed.
if("${variable}")
else()
endif()
The following operators can be used.
Unary: NOT, TARGET, EXISTS (file), DEFINED, etc.
Binary: STREQUAL, AND, OR, MATCHES (regular expression), ...
Parentheses can be used to group.