CMake: How to compile each node with a specific flag
I think this is really a CMake question. Let's say I want to compile the source for node 1, 2 and 3 with -pthread, -O3 and -Os flags respectively. How should I specify this in CMakeLists.txt
and/or catkin_make
command?