This commit is contained in:
Hongze Cheng 2021-09-23 10:59:24 +08:00
parent 7db57d1d50
commit 339d1c1854
3 changed files with 6 additions and 5 deletions

View File

@ -20,18 +20,18 @@ set(DEPS_TMP_FILE "${CMAKE_BINARY_DIR}/deps_tmp_CMakeLists.txt.in")
configure_file("${CMAKE_SUPPORT_DIR}/deps_CMakeLists.txt.in" ${DEPS_TMP_FILE})
## googletest
option(BUILD_TEST "If build unit tests using googletest" ON)
option(BUILD_TEST "If build unit tests using googletest" OFF)
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})
## lz4
cat("${CMAKE_SUPPORT_DIR}/lz4_CMakeLists.txt.in" ${DEPS_TMP_FILE})
## 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

@ -5,7 +5,7 @@ ExternalProject_Add(lz4
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
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""

1
deps/CMakeLists.txt vendored
View File

@ -3,3 +3,4 @@ if(${BUILD_TEST})
endif(${BUILD_TEST})
add_subdirectory(cJson)
add_subdirectory(lz4/build/cmake)