Improve:clang-tidy.

This commit is contained in:
xiaojiazhu 2024-03-08 05:03:19 -08:00
parent 78967a59df
commit 2d0bf0ff64
2 changed files with 15 additions and 1 deletions

View File

@ -54,7 +54,7 @@ set(CLANG_FORMAT_FILE "LLVM ${CMAKE_SOURCE_DIR_IPCSDK}/tools/clang-format/.clang
if(${LINUX_TEST} MATCHES "true")
set(CLANG_TIDY_SUPPORT "true")
set(CLANG_FORMAT_SUPPORT "true")
set(LLVM_PATH "/home/xiaojiazhu/project/tmp/llvm-project")
set(LLVM_PATH "${CMAKE_SOURCE_DIR_IPCSDK}/tools/clang-tidy/llvm-project")
endif()
# ------------ build clang-tools end ------------ #

View File

@ -1,5 +1,19 @@
add_subdirectory(sqlite3/sqlite-3430000)
add_subdirectory(goahead-5.2.0)
find_program(M4 m4)
if(NOT M4)
message("m4 not found. Install before continuing.")
execute_process(COMMAND sudo apt-get install m4
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/gtest/)
endif()
find_program(RAGEL ragel)
if(NOT RAGEL)
message(FATAL_ERROR "ragel not found. Install before continuing.")
execute_process(COMMAND sudo apt-get install ragel
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/gtest/)
endif()
add_subdirectory(httpserver.h-master/src)
add_subdirectory(cJSON-1.7.17)