generate filelists.txt used by doxygen in release mode

This commit is contained in:
Sébastien Loriot 2018-01-08 21:14:01 +01:00
parent bd4f61fa54
commit e596ee63b4
1 changed files with 10 additions and 2 deletions

View File

@ -88,8 +88,16 @@ foreach(pkg ${files})
endif()
endif()
endforeach()
if (IS_DIRECTORY "${release_dir}/doc/${pkg}/fig_src")
file(REMOVE_RECURSE "${release_dir}/doc/${pkg}/fig_src")
if (EXISTS "${release_dir}/doc/${pkg}")
#generate filelist.txt used by doxygen ran on a release
file(GLOB_RECURSE includes LIST_DIRECTORIES false RELATIVE "${CMAKE_BINARY_DIR}/${pkg}/include" "${CMAKE_BINARY_DIR}/${pkg}/include/CGAL/*.h")
foreach(f ${includes})
file(APPEND "${release_dir}/doc/${pkg}/filelist.txt" "${f}\n")
endforeach()
#remove fig_src directory
if (IS_DIRECTORY "${release_dir}/doc/${pkg}/fig_src")
file(REMOVE_RECURSE "${release_dir}/doc/${pkg}/fig_src")
endif()
endif()
endif()
endforeach()