diff --git a/CMakeLists.txt b/CMakeLists.txt index ce3a4014ed..c89a7de447 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,4 +74,10 @@ target_include_directories(api INTERFACE "include/client") # src add_subdirectory(source) +# docs +if(${BUILD_DOCS}) + execute_process(COMMAND doxygen ${PROJECT_SOURCE_DIR}/docs/Doxyfile) +endif(${BUILD_DOCS}) + + # tests (TODO) diff --git a/cmake/cmake.options b/cmake/cmake.options index 1d789dd75e..7b5aeb8e65 100644 --- a/cmake/cmake.options +++ b/cmake/cmake.options @@ -35,4 +35,10 @@ option( BUILD_DEPENDENCY_TESTS "If build dependency tests" OFF +) + +option( + BUILD_DOCS + "If use doxygen build documents" + ON ) \ No newline at end of file