当前位置:网站首页>cmake record

cmake record

2022-08-10 16:03:00 Hong Dayu

add_custom_command(TARGET ${TARGETS} POST_BUILD
                    COMMAND cp ${PROJECT_SOURCE_DIR}/build/compile_commands.json ${PROJECT_SOURCE_DIR} && sed -i 's/-mcpu=cortex-a72.cortex-a53/-mcpu=cortex-a53/g'  ${PROJECT_SOURCE_DIR}/compile_commands.json)

cmake doxygen use

if(DOC_ENABLE)
find_package(Doxygen)
if(DOXYGEN_FOUND)
    set(DOXYGEN_IN ${CMAKE_CURRENT_LIST_DIR}/docs/Doxyfile.in)
    set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
    configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
    add_custom_target( docs ALL
        COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
        COMMENT "Generating API documentation with Doxygen"
        VERBATIM )
endif(DOXYGEN_FOUND)
endif(DOC_ENABLE)
原网站

版权声明
本文为[Hong Dayu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101535537380.html