I think i agree on `add_library` should stay in each module `CMakelists.txt` folder, to be clearly visible.
For code formating there are tools to enforce, that's what I meant. Completely agree in the coherence/uniformity side though and we should do it of course.
``` file(GLOB MODULE_SOURCES "*.c")
add_library(${module_name} SHARED ${MODULE_SOURCES}) # More target definitions and requirements
``` seems reasonable.