Since you do the add_definitions at the top level cmakelists.txt, I don't think you need to redefine it for every plugin : "Adds flags to the compiler command line for sources in the current directory and below." (CMake docs). It should simplify some more.