Fix the doc build.

- Fix the doc target management: now working whatever the combination of modules that is asked.
- Add edo to the doc targets.
- Add a warning when doxygen is not found.
This commit is contained in:
Johann Dreo 2018-12-08 21:11:41 +01:00
commit 4f726f482d
3 changed files with 115 additions and 13 deletions

View file

@ -37,6 +37,11 @@ SET(GLOBAL_VERSION "${VERSION}")
## Optional
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/module" CACHE INTERNAL "Cmake module" FORCE)
include(FindDoxygen OPTIONAL)
if(NOT DOXYGEN_FOUND)
message(WARNING "Doxygen was not found, install it if you want to generate the documentation.")
else()
message(STATUS "Doxygen found, use the target `doc` to generate the documentation.")
endif()
######################################################################################
### 3) Include CMake files