CMake: generate Positioner's doc out of tree

The Positioner's documentation is now generated in the build tree
instead of in the source tree.
This commit is contained in:
Matteo Cypriani 2013-05-30 16:11:44 -04:00
parent 4a3fd2ac8a
commit df765e08b3
3 changed files with 6 additions and 4 deletions

View File

@ -54,9 +54,9 @@ Work to do in OwlPS
- CMake:
- handle doc/ and logo/
- generate Positioner's doc out of the source tree
- use the installation prefix as search prefix for configuration files
in Listener, Aggregator and Positioner
- make sure doxygen is available
- Support string-based positioning requests

View File

@ -138,9 +138,11 @@ add_custom_target(check_positioner
COMMENT "Checking source code")
# Documentation
set(DOXYGEN OWLPS_VERSION=${OWLPS_VERSION} doxygen)
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc")
set(DOXYGEN
DOXYGEN_OUTPUT_DIRECTORY=${DOXYGEN_OUTPUT_DIRECTORY} OWLPS_VERSION=${OWLPS_VERSION} doxygen)
set(DOXYFILE Doxyfile)
add_custom_target(doc_positioner
${DOXYGEN} ${DOXYFILE}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Generating Doxygen documentation for OwlPS Positioner")
COMMENT "Generating Doxygen documentation for OwlPS Positioner in \"${DOXYGEN_OUTPUT_DIRECTORY}\"")

View File

@ -52,7 +52,7 @@ PROJECT_LOGO =
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
OUTPUT_DIRECTORY = doc
OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT_DIRECTORY)
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output