]> Dogcows Code - chaz/yoink/blob - src/Moof/yajl/YAJLDoc.cmake
049cdef2c43b3677847d7aa49546b47b027e55c6
[chaz/yoink] / src / Moof / yajl / YAJLDoc.cmake
1 FIND_PROGRAM(doxygenPath doxygen)
2
3 IF (doxygenPath)
4 SET (YAJL_VERSION ${YAJL_MAJOR}.${YAJL_MINOR}.${YAJL_MICRO})
5 SET(yajlDirName yajl-${YAJL_VERSION})
6 SET(docPath
7 "${CMAKE_CURRENT_BINARY_DIR}/${yajlDirName}/share/doc/${yajlDirName}")
8 MESSAGE("** using doxygen at: ${doxygenPath}")
9 MESSAGE("** documentation output to: ${docPath}")
10
11 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/src/YAJL.dxy
12 ${CMAKE_CURRENT_BINARY_DIR}/YAJL.dxy @ONLY)
13
14 FILE(MAKE_DIRECTORY "${docPath}")
15
16 ADD_CUSTOM_TARGET(doc
17 ${doxygenPath} YAJL.dxy
18 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
19
20 ELSE (doxygenPath)
21 MESSAGE("!! doxygen not found, not generating documentation")
22 ADD_CUSTOM_TARGET(
23 doc
24 echo doxygen not installed, not generating documentation
25 )
26 ENDIF (doxygenPath)
This page took 0.029067 seconds and 3 git commands to generate.