0

I have multiple applications in one folder. I want to generate separate doxygen documentation for every top folder.

root-folder
  -- test-app
  -- myapp_1
  -- myapp_2

I want to generate doxygen documentation for all three in one run but to place results in three different folders.

I tried to set CREATE_SUBDIRS, but this has a different purpose.

I would like to have

html
  - test-app-html
  - myapp1-html
  - myapp2-html
albert
  • 8,285
  • 3
  • 19
  • 32
bcu
  • 11
  • 4
  • Having multiple applications in one folder is not the best choice, you are probably better off by having a library (and include) directory with the common code and the different main programs in different subdirectories. This was a bit off topic. Doxygen cannot build documentation to multiple directories in one go so you have to do a number of builds and in the doxygen configuration files for the different builds have different settings regarding the files to be used (INPUT tag) and the output directory (OUTPUT_DIRECTORY, in your case html, and HTML_OUTPUT myapp1-html, myapp2-html). – albert May 24 '19 at 08:22
  • OK 'Doxygen cannot build documentation to multiple directories in one go' is enough. To make it clear, it is not possible for this. – bcu May 24 '19 at 12:49
  • 1
    It is possible to have documentation generated as you said in one go by one doxygen call, but when wrapping the different doxygen calls in a script you can do it in "one go". – albert May 24 '19 at 12:55
  • I am currently doing something similar for multiple libraries of a single project using a Makefile (if you use `make`, of course). In my case, it is the Makefile's job to make it appear "one go". – BobMorane Jun 11 '19 at 10:47

0 Answers0