CMakeLists.txt 514 B

12345678910111213141516171819
  1. # -*- coding: utf-8; mode: cmake -*-
  2. # (c) Daniel Llorens - 2018-2019
  3. cmake_minimum_required (VERSION 3.5)
  4. project (ra-docs)
  5. find_program (MAKEINFO_EXECUTABLE makeinfo)
  6. set (man_in ${CMAKE_CURRENT_SOURCE_DIR}/ra-ra.texi)
  7. set (man_out ${CMAKE_CURRENT_BINARY_DIR}/index.html)
  8. add_custom_command (OUTPUT ${man_out}
  9. COMMAND ${MAKEINFO_EXECUTABLE} --html --no-split ${man_in} -o ${man_out}
  10. DEPENDS ${man_in}
  11. COMMENT "Creating HTML file ${man_out}"
  12. VERBATIM)
  13. add_custom_target (docs ALL DEPENDS ${man_out})