Is there a way to create definitions in cmake for all targets created. So far when I
add_compile_definitions(MYDEFINITION)
in my root CmakeLists.txt then it seems to only create those definitions for targets created in that file. But I want to create the definitions to all targets created in subdirectories. What is the best way to do this?