W3cubDocs

/CMake 3.7

math

Mathematical expressions.

math(EXPR <output-variable> <math-expression>)

EXPR evaluates mathematical expression and returns result in the output variable. Example mathematical expression is 5 * (10 + 13). Supported operators are +, -, *, /, %, |, &, ^, ~, <<, >>, and (...). They have the same meaning as they do in C code.

© 2000–2016 Kitware, Inc.
© 2000–2011 Insight Software Consortium
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.7/command/math.html