diff --git a/CMakeLists.txt b/CMakeLists.txt index ca6f7903a3f122cd9845023cb2fdae261f7cee4c..3cabcc5644f8d4c44f16996a2540cf5455511f19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,9 @@ 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}) + ## download dependencies configure_file(${DEPS_TMP_FILE} "${CMAKE_SOURCE_DIR}/deps/deps-download/CMakeLists.txt") execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . diff --git a/cmake/lz4_CMakeLists.txt.in b/cmake/lz4_CMakeLists.txt.in new file mode 100644 index 0000000000000000000000000000000000000000..dc3b17ea21c32f76e881bf3c166ac208329d8e83 --- /dev/null +++ b/cmake/lz4_CMakeLists.txt.in @@ -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 "" + ) \ No newline at end of file