I can't find how to declare function like macros in CMake.
I need a macro function like:
#define MYFUNC(foo) QString( foo + "_suffix" )
to be defined by my CMakeLists.txt file. I tried:
add_definitions("-DMYFUNC(foo)=QString\(foo+\"_suffix\"\)")
and
add_definitions("-DMYFUNC\(foo\)=QString\(foo+\"_suffix\"\)")
but none works, compiler (VS2015) always reports MYFUNC is undefined...