project
..
|
Edit doc/doxygen/Doxyfile.in
INPUT and STRIP_FROM_PATH to fit your project. Also you can change where the documentation will be installed in doc/CMakeLists.txt
in the first *#TODO* section. If you do not want your documentation to be part of installation, just leave the section commented.
To your main CMakeLists.txt you want to add add_subdirectory(doc)
in order to include documentation build.
Sometimes you just need to build docs from some pile of sources, and here can this repository help you. You may not even have a CMake Project setup yet, in this case you need to uncomment code after second *#TODO* section in doc/CMakeLists.txt
and documentation will act as a standalone CMake project.
sudo pacman -S cmake g++ graphviz git
sudo apt-get install cmake g++ graphviz plantuml git
mingw32/mingw-w64-i686-gcc mingw32/mingw-w64-i686-cmake git mingw32/mingw-w64-i686-make msys/make msys/doxygen msys/make
c:\Program Files\Graphviz
, so scripts can find it) and add its bin
subdirectory to PATH, install java (have it on PATH), download PlantUML jar file and have it on PATH.You can use doc target to build and install target to install the documentation (if installation part of CMakeLists.txt is uncommented).
Documentation will be in your [build_directory]/doc/index.html
or [build_directory]/doc/doc/index.html
depending of whether used as standalone or as a CMake subdirectory.