This commit is contained in:
Hongze Cheng 2021-09-23 10:07:34 +08:00
parent 22e1dc5ce9
commit 0406220da5
3 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,9 @@ if(${BUILD_TEST})
cat("${CMAKE_SUPPORT_DIR}/gtest_CMakeLists.txt.in" ${DEPS_TMP_FILE})
endif(${BUILD_TEST})
## cJson
cat("${CMAKE_SUPPORT_DIR}/cjson_CMakeLists.txt.in" ${DEPS_TMP_FILE})
## download dependencies
configure_file(${DEPS_TMP_FILE} "${CMAKE_SOURCE_DIR}/deps/deps-download/CMakeLists.txt")
execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .

View File

@ -0,0 +1,12 @@
# cjson
ExternalProject_Add(cjson
GIT_REPOSITORY git@github.com:taosdata/cJSON.git
GIT_TAG v1.7.15
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/cJson"
BINARY_DIR "${CMAKE_BINARY_DIR}/cJson-build"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
)

2
deps/CMakeLists.txt vendored
View File

@ -1,3 +1,5 @@
if(${BUILD_TEST})
add_subdirectory(googletest)
endif(${BUILD_TEST})
add_subdirectory(cJson)