Skip to content

Commit

Permalink
adding doxygen for combiner modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarbach committed Oct 16, 2014
1 parent e1b1929 commit 55d805c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
26 changes: 18 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ENDIF()
LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
INCLUDE(settings)
INCLUDE(macros)
INCLUDE(combiners)

# find ROOT
FIND_PACKAGE(ROOT REQUIRED)
Expand All @@ -49,14 +50,24 @@ ENDIF()
FIND_PACKAGE(Doxygen)

if(DOXYGEN_FOUND)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile @ONLY)

ADD_CUSTOM_TARGET(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
COMMENT "Generating API documentation with Doxygen" VERBATIM)
# add combiner modules to Doxygen
set(COMBINER_MODULES_DOXYGEN_SOURCES)
foreach( dir ${COMBINER_MODULES} )
set(COMBINER_MODULES_DOXYGEN_SOURCES "${COMBINER_MODULES_DOXYGEN_SOURCES}
INPUT += ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/include
INPUT += ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/src"
)
endforeach()
# configure Doxygen config file
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile @ONLY)
# add target
ADD_CUSTOM_TARGET(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
ELSE()
MESSAGE( STATUS "Doxygen not installed or found -- API documentation can't be generated!" )
MESSAGE( STATUS "Doxygen not installed or found -- API documentation can't be generated!" )
ENDIF(DOXYGEN_FOUND)

######################################
Expand Down Expand Up @@ -162,7 +173,6 @@ TARGET_LINK_LIBRARIES( ${PROJECT_NAME}Components ${ROOT_LIBRARIES} )
#
######################################

include( combiners )
foreach( dir ${COMBINER_MODULES} )
add_subdirectory(${dir})
endforeach()
Expand Down
6 changes: 3 additions & 3 deletions cmake/combiners.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

SET( COMBINER_MODULES
tutorial
#gammacombo
#hfag
gammacombo
hfag
bsmumu
#biggammacombo
biggammacombo
# add your combiners here
)

3 changes: 1 addition & 2 deletions doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,7 @@ WARN_LOGFILE =

INPUT = @CMAKE_CURRENT_SOURCE_DIR@/core/src
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/core/include
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/tutorial/include
INPUT += @CMAKE_CURRENT_SOURCE_DIR@/tutorial/src
@COMBINER_MODULES_DOXYGEN_SOURCES@

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
Expand Down

0 comments on commit 55d805c

Please sign in to comment.