# Find doxygen. find_package(Doxygen) # Generate build targets and the doc/index.html file. IF (DOXYGEN_FOUND OR LUA_PROGRAM_FOUND) add_custom_target(doc) ELSE (DOXYGEN_FOUND OR LUA_PROGRAM_FOUND) message("Cannot locate Doxygen or lua, 'doc' target is not available") ENDIF (DOXYGEN_FOUND OR LUA_PROGRAM_FOUND)