<commit_before>
configure_file(ThirdPartyLibraries.html
    ${CMAKE_BINARY_DIR}/doc/ThirdPartyLibraries.html COPYONLY)



if(BUILD_GUI)
    FILE(GLOB QCH_FILES freecad.qch.part*)
    set (DEST_FILE ${CMAKE_BINARY_DIR}/doc/freecad.qch)
    foreach(SRC_FILE ${QCH_FILES})
        if(${SRC_FILE} IS_NEWER_THAN ${DEST_FILE})
            EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/Tools/catfiles.py
                  --outputfile=${DEST_FILE} ${QCH_FILES}
                  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
                  OUTPUT_STRIP_TRAILING_WHITESPACE)
            break()
        endif()
    endforeach()

    configure_file(freecad.qhc ${CMAKE_BINARY_DIR}/doc/freecad.qhc COPYONLY)
endif(BUILD_GUI)

INSTALL(FILES
    freecad.qhc
    ${CMAKE_BINARY_DIR}/doc/freecad.qch
    ThirdPartyLibraries.html
    DESTINATION ${CMAKE_INSTALL_DOCDIR}
)

find_package(Doxygen)
if(DOXYGEN_FOUND)

    IF (DOXYGEN_DOT_EXECUTABLE)
        SET(HAVE_DOT YES)
    ELSE (DOXYGEN_DOT_EXECUTABLE)<commit_msg>fix PPA build failure<commit_after>
configure_file(ThirdPartyLibraries.html
    ${CMAKE_BINARY_DIR}/doc/ThirdPartyLibraries.html COPYONLY)



if(BUILD_GUI)
    FILE(GLOB QCH_FILES freecad.qch.part*)
    set (DEST_FILE ${CMAKE_CURRENT_BINARY_DIR}/freecad.qch)
    foreach(SRC_FILE ${QCH_FILES})
        if(${SRC_FILE} IS_NEWER_THAN ${DEST_FILE})
            EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/Tools/catfiles.py
                  --outputfile=${DEST_FILE} ${QCH_FILES}
                  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
                  OUTPUT_STRIP_TRAILING_WHITESPACE)
            break()
        endif()
    endforeach()

    configure_file(${DEST_FILE} ${CMAKE_BINARY_DIR}/doc/freecad.qch COPYONLY)
    configure_file(freecad.qhc ${CMAKE_BINARY_DIR}/doc/freecad.qhc COPYONLY)
endif(BUILD_GUI)

INSTALL(FILES
    freecad.qhc
    ${CMAKE_BINARY_DIR}/src/Doc/freecad.qch
    ThirdPartyLibraries.html
    DESTINATION ${CMAKE_INSTALL_DOCDIR}
)

find_package(Doxygen)
if(DOXYGEN_FOUND)

    IF (DOXYGEN_DOT_EXECUTABLE)
        SET(HAVE_DOT YES)
    ELSE (DOXYGEN_DOT_EXECUTABLE)
{'fraction_non_alphanumeric': 0.10186046511627907, 'fraction_numerical': 0.0, 'mean_word_length': 3.61587982832618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2812767', 'n_tokens_mistral': 866, 'n_tokens_neox': 793, 'n_words': 95}