Building Documentation for Nested projects with CMake -


i'm working on project contains other projects libraries using git submodules. these sub-projects under active development well, root cmake file run sub-project cmake files well.

example project structure:

current_project/     src/     include/     docs/     libs/         sub_module_1/             src/             include/             docs/         sub_module_2/             src/             include/             docs/         sub_module_3/             src/             include/             docs/     src/ 

the actual building portion works fine. in of sub projects, custom target docs used generate documentation. since there multiple docs targets defined each subproject, cmake complains. don't have control on sub-projects, , therefore cannot edit cmake files those. there way to, without editing sub-projects (as changes overwritten when git update), either have cmake combine commands each sub-project , run of them, or have generate prefix (probably project name) docs target each project?

edit: see cmake has projects defined term. i'm not referring cmake projects. when saying project, referring libraries , programs that, while related, independent of each other.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -