From 2dc157e76f5b7eb8dbc2bf92d46e7b5b178d4d3d Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 15 Apr 2015 16:04:13 +0200 Subject: [PATCH] Add option to enable/disable documentation generation when building with CMake. --- CMakeLists.txt | 1 + coreapi/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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()