Only check the list of documented headers

That list of documented headers (contained in
`Installation/list_of_documented_headers.cmake`) is generated using a
shell script, with `ack`, by searching in the example .cpp files, and in
the Doxygen compiled documentation.
This commit is contained in:
Laurent Rineau
2016-09-30 15:22:28 +02:00
parent 91c6426ae2
commit c6855beb15
3 changed files with 952 additions and 22 deletions
@@ -0,0 +1,16 @@
#!/bin/sh
# Used to regenerate `Installation/list_of_documented_headers.cmake`
#
# Run it in the `Installation` directory of a Git layout, with
# `../build-doc/doc_output/` containing the build of the Doxygen
# documentation.
printf "# Generated using $0\n" > list_of_documented_headers.cmake
exec >> list_of_documented_headers.cmake
printf 'set(list_of_documented_headers_txt [=[\n'
ack --no-heading --no-filename --output='$2' --cpp --html '# *include *(&lt;|[<"])(CGAL/[^>&]*)([>"]|&gt;)' ../build-doc/doc_output ../*/examples/*/*.cpp | sort | uniq
printf ']=])\n'
printf 'separate_arguments(list_of_documented_headers UNIX_COMMAND ${list_of_documented_headers_txt})\n'