2015-04-10 18:39:09 +03:00
|
|
|
find_program(DOXYGEN doxygen)
|
|
|
|
if (NOT DOXYGEN)
|
|
|
|
message(STATUS "Target 'doc' disabled (requires doxygen)")
|
2015-03-02 03:35:29 +03:00
|
|
|
return ()
|
|
|
|
endif ()
|
|
|
|
|
2015-11-23 19:10:02 +03:00
|
|
|
add_custom_target(doc
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${CPPFORMAT_VERSION})
|
2015-01-30 23:53:52 +03:00
|
|
|
|
2015-11-23 19:22:21 +03:00
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
|
2015-08-31 18:22:25 +03:00
|
|
|
DESTINATION share/doc/cppformat)
|