1 FIND_PROGRAM(doxygenPath doxygen)
4 SET (YAJL_VERSION ${YAJL_MAJOR}.${YAJL_MINOR}.${YAJL_MICRO})
5 SET(yajlDirName yajl-${YAJL_VERSION})
7 "${CMAKE_CURRENT_BINARY_DIR}/${yajlDirName}/share/doc/${yajlDirName}")
8 MESSAGE("** using doxygen at: ${doxygenPath}")
9 MESSAGE("** documentation output to: ${docPath}")
11 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/YAJL.dxy
12 ${CMAKE_CURRENT_BINARY_DIR}/YAJL.dxy @ONLY)
14 FILE(MAKE_DIRECTORY "${docPath}")
17 ${doxygenPath} YAJL.dxy
18 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
21 MESSAGE("!! doxygen not found, not generating documentation")
24 echo doxygen not installed, not generating documentation