This commit is contained in:
Hongze Cheng 2021-09-23 10:43:39 +08:00
parent 0406220da5
commit 7db57d1d50
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -0,0 +1,12 @@
# lz4
ExternalProject_Add(lz4
GIT_REPOSITORY git@github.com:lz4/lz4.git
GIT_TAG v1.9.3
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/lz4"
BINARY_DIR "${CMAKE_BINARY_DIR}/lz4-build"
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}/build/cmake
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
)