diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d5c892db..a3c505c56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ include(CMakeDependentOption) option(ENABLE_STATIC "Build static library (default is shared library)." NO) option(ENABLE_CONSOLE_UI "Turn on or off compilation of console interface." YES) option(ENABLE_DATE "Use build date in internal version number." NO) +option(ENABLE_DOC "Enable documentation generation with Doxygen." YES) option(ENABLE_GTK_UI "Turn on or off compilation of gtk interface." YES) option(ENABLE_LDAP "Enable LDAP support." NO) option(ENABLE_MSG_STORAGE "Turn on compilation of message storage." YES) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index f2fe192bc..b8b6b27cb 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -205,4 +205,6 @@ install(FILES ${HEADER_FILES} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ ) -add_subdirectory(help) +if(ENABLE_DOC) + add_subdirectory(help) +endif()