Skip to content
Snippets Groups Projects
Commit a104ad3d authored by Raphaël Lallement's avatar Raphaël Lallement
Browse files

[wip/hatponboard-lib] Make the documentation generation an option

parent 2a8a4d6f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
DISTNAME= hatponboard-lib-${VERSION}
VERSION= 2.1.4
PKGREVISION=
PKGREVISION= 1
CATEGORIES= planning
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=hatponboard-lib/}
MASTER_REPOSITORY= ${MASTER_REPOSITORY_OPENROBOTS}hatp/hatponboard-lib
......@@ -19,6 +19,13 @@ MAKE_JOBS_SAFE= yes
DEPEND_ABI.boost-libs=boost-libs>=1.34
DEPEND_ABI.boost-headers=boost-headers>=1.34
PKG_SUPPORTED_OPTIONS+= doc
PKG_OPTION_DESCR.doc= Enable the documentation generation
define PKG_OPTION_SET.doc
include ../../mk/sysdep/doxygen.mk
endef
# Find Antlr binary name and pass it to CMake
CMAKE_ARGS+= -DAntlr_INCLUDE=${ANTLR_INCLUDE} -DAntlr_BIN=${ANTLR_BIN} -DAntlr_LIB=${ANTLR_LIB}
......@@ -26,7 +33,6 @@ include ../../devel/boost-headers/depend.mk
include ../../devel/boost-libs/depend.mk
include ../../wip/antlr2/depend.mk
include ../../mk/sysdep/cmake.mk
include ../../mk/sysdep/doxygen.mk
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/robotpkg.mk
diff --git CMakeLists.txt CMakeLists.txt
index 0107cfe..9024d3f 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -61,7 +61,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/share/uninstall.cmake.in ${CMAKE_BINA
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}/uninstall.cmake)
#Documentation
-find_package(Doxygen REQUIRED)
+find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment