From 54a84475f185177e74ddc1f5e787df20d498d546 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Tue, 10 Mar 2020 02:47:03 +0000 Subject: [PATCH] add a thirdparty directory --- src/CMakeLists.txt | 21 +++++++++++---------- src/thirdparty/CMakeLists.txt | 4 ++++ src/{util => thirdparty}/inc/lz4.h | 0 src/{util => thirdparty}/src/lz4.c | 0 4 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 src/thirdparty/CMakeLists.txt rename src/{util => thirdparty}/inc/lz4.h (100%) rename src/{util => thirdparty}/src/lz4.c (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 81df1196f9..ba148348ed 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,14 +2,15 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) ADD_SUBDIRECTORY(os) -ADD_SUBDIRECTORY(util) -ADD_SUBDIRECTORY(rpc) -ADD_SUBDIRECTORY(client) -ADD_SUBDIRECTORY(kit) -ADD_SUBDIRECTORY(plugins) -ADD_SUBDIRECTORY(sdb) -ADD_SUBDIRECTORY(mnode) -ADD_SUBDIRECTORY(vnode) -ADD_SUBDIRECTORY(dnode) -ADD_SUBDIRECTORY(query) +ADD_SUBDIRECTORY(thirdparty) +# ADD_SUBDIRECTORY(util) +# ADD_SUBDIRECTORY(rpc) +# ADD_SUBDIRECTORY(client) +# ADD_SUBDIRECTORY(kit) +# ADD_SUBDIRECTORY(plugins) +# ADD_SUBDIRECTORY(sdb) +# ADD_SUBDIRECTORY(mnode) +# ADD_SUBDIRECTORY(vnode) +# ADD_SUBDIRECTORY(dnode) +# ADD_SUBDIRECTORY(query) #ADD_SUBDIRECTORY(connector/jdbc) diff --git a/src/thirdparty/CMakeLists.txt b/src/thirdparty/CMakeLists.txt new file mode 100644 index 0000000000..9958e1e28c --- /dev/null +++ b/src/thirdparty/CMakeLists.txt @@ -0,0 +1,4 @@ +aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_LIST) + +add_library(thirdparty ${SOURCE_LIST}) +target_include_directories(thirdparty PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/inc) \ No newline at end of file diff --git a/src/util/inc/lz4.h b/src/thirdparty/inc/lz4.h similarity index 100% rename from src/util/inc/lz4.h rename to src/thirdparty/inc/lz4.h diff --git a/src/util/src/lz4.c b/src/thirdparty/src/lz4.c similarity index 100% rename from src/util/src/lz4.c rename to src/thirdparty/src/lz4.c -- GitLab