Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2662a3b6
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2662a3b6
编写于
4月 10, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-13254]<fix>: make 3.0 grant.
上级
4188f3fa
变更
73
隐藏空白更改
内联
并排
Showing
73 changed file
with
351 addition
and
193 deletion
+351
-193
CMakeLists.txt
CMakeLists.txt
+10
-6
cmake/bdb_CMakeLists.txt.in.bak
cmake/bdb_CMakeLists.txt.in.bak
+2
-2
cmake/cjson_CMakeLists.txt.in
cmake/cjson_CMakeLists.txt.in
+1
-1
cmake/craft_CMakeLists.txt.in
cmake/craft_CMakeLists.txt.in
+2
-2
cmake/gnuregex_CMakeLists.txt.in
cmake/gnuregex_CMakeLists.txt.in
+1
-1
cmake/gtest_CMakeLists.txt.in
cmake/gtest_CMakeLists.txt.in
+1
-1
cmake/iconv_CMakeLists.txt.in
cmake/iconv_CMakeLists.txt.in
+1
-1
cmake/leveldb_CMakeLists.txt.in
cmake/leveldb_CMakeLists.txt.in
+1
-1
cmake/libuv_CMakeLists.txt.in
cmake/libuv_CMakeLists.txt.in
+2
-2
cmake/lucene_CMakeLists.txt.in
cmake/lucene_CMakeLists.txt.in
+1
-1
cmake/lz4_CMakeLists.txt.in
cmake/lz4_CMakeLists.txt.in
+1
-1
cmake/nuraft_CMakeLists.txt.in
cmake/nuraft_CMakeLists.txt.in
+2
-2
cmake/pthread_CMakeLists.txt.in
cmake/pthread_CMakeLists.txt.in
+1
-1
cmake/rocksdb_CMakeLists.txt.in
cmake/rocksdb_CMakeLists.txt.in
+1
-1
cmake/sqlite_CMakeLists.txt.in
cmake/sqlite_CMakeLists.txt.in
+2
-2
cmake/stub_CMakeLists.txt.in
cmake/stub_CMakeLists.txt.in
+2
-2
cmake/traft_CMakeLists.txt.in
cmake/traft_CMakeLists.txt.in
+2
-2
cmake/zlib_CMakeLists.txt.in
cmake/zlib_CMakeLists.txt.in
+1
-1
contrib/CMakeLists.txt
contrib/CMakeLists.txt
+22
-22
docs/CMakeLists.txt
docs/CMakeLists.txt
+1
-1
docs/Doxyfile.in
docs/Doxyfile.in
+1
-1
include/common/tglobal.h
include/common/tglobal.h
+1
-0
include/common/tgrant.h
include/common/tgrant.h
+51
-0
include/util/taoserror.h
include/util/taoserror.h
+102
-0
source/client/CMakeLists.txt
source/client/CMakeLists.txt
+1
-1
source/client/test/CMakeLists.txt
source/client/test/CMakeLists.txt
+4
-4
source/common/CMakeLists.txt
source/common/CMakeLists.txt
+3
-3
source/common/src/tglobal.c
source/common/src/tglobal.c
+1
-1
source/common/test/CMakeLists.txt
source/common/test/CMakeLists.txt
+3
-3
source/dnode/bnode/CMakeLists.txt
source/dnode/bnode/CMakeLists.txt
+1
-1
source/dnode/mgmt/CMakeLists.txt
source/dnode/mgmt/CMakeLists.txt
+1
-1
source/dnode/mnode/impl/CMakeLists.txt
source/dnode/mnode/impl/CMakeLists.txt
+1
-1
source/dnode/mnode/sdb/CMakeLists.txt
source/dnode/mnode/sdb/CMakeLists.txt
+1
-1
source/dnode/qnode/CMakeLists.txt
source/dnode/qnode/CMakeLists.txt
+1
-1
source/dnode/snode/CMakeLists.txt
source/dnode/snode/CMakeLists.txt
+1
-1
source/dnode/vnode/test/CMakeLists.txt
source/dnode/vnode/test/CMakeLists.txt
+2
-2
source/libs/cache/CMakeLists.txt
source/libs/cache/CMakeLists.txt
+1
-1
source/libs/catalog/CMakeLists.txt
source/libs/catalog/CMakeLists.txt
+1
-1
source/libs/catalog/test/CMakeLists.txt
source/libs/catalog/test/CMakeLists.txt
+2
-2
source/libs/command/CMakeLists.txt
source/libs/command/CMakeLists.txt
+1
-1
source/libs/command/test/CMakeLists.txt
source/libs/command/test/CMakeLists.txt
+2
-2
source/libs/executor/CMakeLists.txt
source/libs/executor/CMakeLists.txt
+2
-2
source/libs/executor/test/CMakeLists.txt
source/libs/executor/test/CMakeLists.txt
+2
-2
source/libs/function/CMakeLists.txt
source/libs/function/CMakeLists.txt
+9
-9
source/libs/index/CMakeLists.txt
source/libs/index/CMakeLists.txt
+4
-4
source/libs/index/test/CMakeLists.txt
source/libs/index/test/CMakeLists.txt
+5
-5
source/libs/monitor/CMakeLists.txt
source/libs/monitor/CMakeLists.txt
+1
-1
source/libs/nodes/CMakeLists.txt
source/libs/nodes/CMakeLists.txt
+1
-1
source/libs/nodes/test/CMakeLists.txt
source/libs/nodes/test/CMakeLists.txt
+2
-2
source/libs/parser/CMakeLists.txt
source/libs/parser/CMakeLists.txt
+1
-1
source/libs/parser/test/CMakeLists.txt
source/libs/parser/test/CMakeLists.txt
+2
-2
source/libs/planner/CMakeLists.txt
source/libs/planner/CMakeLists.txt
+1
-1
source/libs/planner/test/CMakeLists.txt
source/libs/planner/test/CMakeLists.txt
+3
-3
source/libs/qcom/CMakeLists.txt
source/libs/qcom/CMakeLists.txt
+1
-1
source/libs/qcom/test/CMakeLists.txt
source/libs/qcom/test/CMakeLists.txt
+2
-2
source/libs/qworker/CMakeLists.txt
source/libs/qworker/CMakeLists.txt
+1
-1
source/libs/qworker/test/CMakeLists.txt
source/libs/qworker/test/CMakeLists.txt
+2
-2
source/libs/scalar/CMakeLists.txt
source/libs/scalar/CMakeLists.txt
+1
-1
source/libs/scalar/test/filter/CMakeLists.txt
source/libs/scalar/test/filter/CMakeLists.txt
+2
-2
source/libs/scalar/test/scalar/CMakeLists.txt
source/libs/scalar/test/scalar/CMakeLists.txt
+2
-2
source/libs/scheduler/CMakeLists.txt
source/libs/scheduler/CMakeLists.txt
+1
-1
source/libs/scheduler/test/CMakeLists.txt
source/libs/scheduler/test/CMakeLists.txt
+2
-2
source/libs/stream/CMakeLists.txt
source/libs/stream/CMakeLists.txt
+1
-1
source/libs/sync/CMakeLists.txt
source/libs/sync/CMakeLists.txt
+1
-1
source/libs/sync/test/CMakeLists.txt
source/libs/sync/test/CMakeLists.txt
+40
-40
source/libs/tfs/CMakeLists.txt
source/libs/tfs/CMakeLists.txt
+1
-1
source/libs/transport/CMakeLists.txt
source/libs/transport/CMakeLists.txt
+2
-2
source/libs/transport/test/CMakeLists.txt
source/libs/transport/test/CMakeLists.txt
+6
-6
source/libs/wal/CMakeLists.txt
source/libs/wal/CMakeLists.txt
+1
-1
source/libs/wal/test/CMakeLists.txt
source/libs/wal/test/CMakeLists.txt
+1
-1
source/os/CMakeLists.txt
source/os/CMakeLists.txt
+5
-5
source/util/CMakeLists.txt
source/util/CMakeLists.txt
+1
-1
tools/CMakeLists.txt
tools/CMakeLists.txt
+6
-6
未找到文件。
CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -6,13 +6,17 @@ project(
...
@@ -6,13 +6,17 @@ project(
DESCRIPTION
"An open-source big data platform designed and optimized for the Internet of Things(IOT)"
DESCRIPTION
"An open-source big data platform designed and optimized for the Internet of Things(IOT)"
)
)
set
(
CMAKE_SUPPORT_DIR
"
${
CMAKE_SOURCE_DIR
}
/cmake"
)
if
(
NOT DEFINED TD_SOURCE_DIR
)
set
(
CMAKE_CONTRIB_DIR
"
${
CMAKE_SOURCE_DIR
}
/contrib"
)
set
(
TD_SOURCE_DIR
${
CMAKE_SOURCE_DIR
}
)
endif
()
include
(
${
CMAKE_SUPPORT_DIR
}
/cmake.platform
)
set
(
TD_SUPPORT_DIR
"
${
TD_SOURCE_DIR
}
/cmake"
)
include
(
${
CMAKE_SUPPORT_DIR
}
/cmake.define
)
set
(
TD_CONTRIB_DIR
"
${
TD_SOURCE_DIR
}
/contrib"
)
include
(
${
CMAKE_SUPPORT_DIR
}
/cmake.options
)
include
(
${
CMAKE_SUPPORT_DIR
}
/cmake.version
)
include
(
${
TD_SUPPORT_DIR
}
/cmake.platform
)
include
(
${
TD_SUPPORT_DIR
}
/cmake.define
)
include
(
${
TD_SUPPORT_DIR
}
/cmake.options
)
include
(
${
TD_SUPPORT_DIR
}
/cmake.version
)
# contrib
# contrib
add_subdirectory
(
contrib
)
add_subdirectory
(
contrib
)
...
...
cmake/bdb_CMakeLists.txt.in.bak
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(bdb
ExternalProject_Add(bdb
GIT_REPOSITORY https://github.com/berkeleydb/libdb.git
GIT_REPOSITORY https://github.com/berkeleydb/libdb.git
GIT_TAG v5.3.28
GIT_TAG v5.3.28
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/bdb"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/bdb"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/bdb"
BINARY_DIR "${
TD
_CONTRIB_DIR}/bdb"
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND COMMAND ./dist/configure --enable-debug
CONFIGURE_COMMAND COMMAND ./dist/configure --enable-debug
BUILD_COMMAND "$(MAKE)"
BUILD_COMMAND "$(MAKE)"
...
...
cmake/cjson_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(cjson
ExternalProject_Add(cjson
GIT_REPOSITORY https://github.com/taosdata-contrib/cJSON.git
GIT_REPOSITORY https://github.com/taosdata-contrib/cJSON.git
GIT_TAG v1.7.15
GIT_TAG v1.7.15
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/cJson"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/cJson"
BINARY_DIR ""
BINARY_DIR ""
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
...
...
cmake/craft_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(craft
ExternalProject_Add(craft
GIT_REPOSITORY https://github.com/canonical/raft.git
GIT_REPOSITORY https://github.com/canonical/raft.git
GIT_TAG v0.11.2
GIT_TAG v0.11.2
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/craft"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/craft"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/craft"
BINARY_DIR "${
TD
_CONTRIB_DIR}/craft"
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure --enable-example
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure --enable-example
...
...
cmake/gnuregex_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(gnuregex
ExternalProject_Add(gnuregex
URL https://launchpad.net/gnuregex/trunk/2.9/+download/libgnurx-src-2.9.zip
URL https://launchpad.net/gnuregex/trunk/2.9/+download/libgnurx-src-2.9.zip
DOWNLOAD_NAME libgnurx-src.zip
DOWNLOAD_NAME libgnurx-src.zip
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/gnuregex"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/gnuregex"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
...
...
cmake/gtest_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(googletest
ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/taosdata-contrib/googletest.git
GIT_REPOSITORY https://github.com/taosdata-contrib/googletest.git
GIT_TAG release-1.11.0
GIT_TAG release-1.11.0
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/googletest"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/googletest"
BINARY_DIR ""
BINARY_DIR ""
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
...
...
cmake/iconv_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(iconv
ExternalProject_Add(iconv
GIT_REPOSITORY https://github.com/win-iconv/win-iconv.git
GIT_REPOSITORY https://github.com/win-iconv/win-iconv.git
GIT_TAG v0.0.8
GIT_TAG v0.0.8
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/iconv"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/iconv"
BINARY_DIR ""
BINARY_DIR ""
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
...
...
cmake/leveldb_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(leveldb
ExternalProject_Add(leveldb
GIT_REPOSITORY https://github.com/taosdata-contrib/leveldb.git
GIT_REPOSITORY https://github.com/taosdata-contrib/leveldb.git
GIT_TAG master
GIT_TAG master
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/leveldb"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/leveldb"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
...
...
cmake/libuv_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(libuv
ExternalProject_Add(libuv
GIT_REPOSITORY https://github.com/libuv/libuv.git
GIT_REPOSITORY https://github.com/libuv/libuv.git
GIT_TAG v1.42.0
GIT_TAG v1.42.0
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/libuv"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/libuv"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/libuv"
BINARY_DIR "${
TD
_CONTRIB_DIR}/libuv"
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
INSTALL_COMMAND ""
...
...
cmake/lucene_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# lucene
# lucene
ExternalProject_Add(lucene
ExternalProject_Add(lucene
GIT_REPOSITORY https://github.com/yihaoDeng/LucenePlusPlus.git
GIT_REPOSITORY https://github.com/yihaoDeng/LucenePlusPlus.git
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/lucene"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/lucene"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
...
...
cmake/lz4_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(lz4
ExternalProject_Add(lz4
GIT_REPOSITORY https://github.com/taosdata-contrib/lz4.git
GIT_REPOSITORY https://github.com/taosdata-contrib/lz4.git
GIT_TAG v1.9.3
GIT_TAG v1.9.3
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/lz4"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/lz4"
BINARY_DIR ""
BINARY_DIR ""
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
...
...
cmake/nuraft_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(NuRaft
ExternalProject_Add(NuRaft
GIT_REPOSITORY https://github.com/eBay/NuRaft.git
GIT_REPOSITORY https://github.com/eBay/NuRaft.git
GIT_TAG v1.3.0
GIT_TAG v1.3.0
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/nuraft"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/nuraft"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/nuraft"
BINARY_DIR "${
TD
_CONTRIB_DIR}/nuraft"
CONFIGURE_COMMAND "./prepare.sh"
CONFIGURE_COMMAND "./prepare.sh"
BUILD_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
INSTALL_COMMAND ""
...
...
cmake/pthread_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(pthread
ExternalProject_Add(pthread
GIT_REPOSITORY https://github.com/GerHobbelt/pthread-win32
GIT_REPOSITORY https://github.com/GerHobbelt/pthread-win32
GIT_TAG v3.0.3.1
GIT_TAG v3.0.3.1
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/pthread-win32"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/pthread-win32"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
...
...
cmake/rocksdb_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(rocksdb
ExternalProject_Add(rocksdb
GIT_REPOSITORY https://github.com/taosdata-contrib/rocksdb.git
GIT_REPOSITORY https://github.com/taosdata-contrib/rocksdb.git
GIT_TAG v6.23.3
GIT_TAG v6.23.3
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/rocksdb"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/rocksdb"
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
INSTALL_COMMAND ""
...
...
cmake/sqlite_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(sqlite
ExternalProject_Add(sqlite
GIT_REPOSITORY https://github.com/sqlite/sqlite.git
GIT_REPOSITORY https://github.com/sqlite/sqlite.git
GIT_TAG version-3.36.0
GIT_TAG version-3.36.0
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/sqlite"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/sqlite"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/sqlite"
BINARY_DIR "${
TD
_CONTRIB_DIR}/sqlite"
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND "./configure"
CONFIGURE_COMMAND "./configure"
BUILD_COMMAND "$(MAKE)"
BUILD_COMMAND "$(MAKE)"
...
...
cmake/stub_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(stub
ExternalProject_Add(stub
GIT_REPOSITORY https://github.com/coolxv/cpp-stub.git
GIT_REPOSITORY https://github.com/coolxv/cpp-stub.git
GIT_SUBMODULES "src"
GIT_SUBMODULES "src"
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/cpp-stub"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/cpp-stub"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/cpp-stub/src"
BINARY_DIR "${
TD
_CONTRIB_DIR}/cpp-stub/src"
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
INSTALL_COMMAND ""
...
...
cmake/traft_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
ExternalProject_Add(traft
ExternalProject_Add(traft
GIT_REPOSITORY https://github.com/taosdata/traft.git
GIT_REPOSITORY https://github.com/taosdata/traft.git
GIT_TAG for_3.0
GIT_TAG for_3.0
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/traft"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/traft"
BINARY_DIR "${
CMAKE
_CONTRIB_DIR}/traft"
BINARY_DIR "${
TD
_CONTRIB_DIR}/traft"
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
# https://answers.ros.org/question/333125/how-to-include-external-automakeautoconf-projects-into-ament_cmake/
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure
CONFIGURE_COMMAND COMMAND autoreconf -i COMMAND ./configure
...
...
cmake/zlib_CMakeLists.txt.in
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
ExternalProject_Add(zlib
ExternalProject_Add(zlib
GIT_REPOSITORY https://github.com/taosdata-contrib/zlib.git
GIT_REPOSITORY https://github.com/taosdata-contrib/zlib.git
GIT_TAG v1.2.11
GIT_TAG v1.2.11
SOURCE_DIR "${
CMAKE
_CONTRIB_DIR}/zlib"
SOURCE_DIR "${
TD
_CONTRIB_DIR}/zlib"
BINARY_DIR ""
BINARY_DIR ""
#BUILD_IN_SOURCE TRUE
#BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ""
CONFIGURE_COMMAND ""
...
...
contrib/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -7,88 +7,88 @@ function(cat IN_FILE OUT_FILE)
...
@@ -7,88 +7,88 @@ function(cat IN_FILE OUT_FILE)
endfunction
(
cat IN_FILE OUT_FILE
)
endfunction
(
cat IN_FILE OUT_FILE
)
set
(
CONTRIB_TMP_FILE
"
${
CMAKE_BINARY_DIR
}
/deps_tmp_CMakeLists.txt.in"
)
set
(
CONTRIB_TMP_FILE
"
${
CMAKE_BINARY_DIR
}
/deps_tmp_CMakeLists.txt.in"
)
configure_file
(
"
${
CMAKE
_SUPPORT_DIR
}
/deps_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
configure_file
(
"
${
TD
_SUPPORT_DIR
}
/deps_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
# pthread
# pthread
if
(
${
BUILD_PTHREAD
}
)
if
(
${
BUILD_PTHREAD
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/pthread_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/pthread_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
()
endif
()
# gnu regex
# gnu regex
if
(
${
BUILD_GNUREGEX
}
)
if
(
${
BUILD_GNUREGEX
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/gnuregex_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/gnuregex_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
()
endif
()
# googletest
# googletest
if
(
${
BUILD_TEST
}
)
if
(
${
BUILD_TEST
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/gtest_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/gtest_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/stub_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/stub_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_TEST
}
)
endif
(
${
BUILD_TEST
}
)
# lz4
# lz4
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/lz4_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/lz4_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
# zlib
# zlib
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/zlib_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/zlib_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
# cJson
# cJson
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/cjson_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/cjson_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
# leveldb
# leveldb
if
(
${
BUILD_WITH_LEVELDB
}
)
if
(
${
BUILD_WITH_LEVELDB
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/leveldb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/leveldb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_WITH_LEVELDB
}
)
endif
(
${
BUILD_WITH_LEVELDB
}
)
# rocksdb
# rocksdb
if
(
${
BUILD_WITH_ROCKSDB
}
)
if
(
${
BUILD_WITH_ROCKSDB
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/rocksdb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/rocksdb_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
add_definitions
(
-DUSE_ROCKSDB
)
add_definitions
(
-DUSE_ROCKSDB
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
endif
(
${
BUILD_WITH_ROCKSDB
}
)
# canonical-raft
# canonical-raft
if
(
${
BUILD_WITH_CRAFT
}
)
if
(
${
BUILD_WITH_CRAFT
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/craft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/craft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
SET
(
BUILD_WITH_UV ON CACHE BOOL
"craft need libuv"
FORCE
)
SET
(
BUILD_WITH_UV ON CACHE BOOL
"craft need libuv"
FORCE
)
endif
(
${
BUILD_WITH_CRAFT
}
)
endif
(
${
BUILD_WITH_CRAFT
}
)
# traft
# traft
if
(
${
BUILD_WITH_TRAFT
}
)
if
(
${
BUILD_WITH_TRAFT
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/traft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/traft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
SET
(
BUILD_WITH_UV ON CACHE BOOL
"traft need libuv"
FORCE
)
SET
(
BUILD_WITH_UV ON CACHE BOOL
"traft need libuv"
FORCE
)
endif
(
${
BUILD_WITH_TRAFT
}
)
endif
(
${
BUILD_WITH_TRAFT
}
)
#libuv
#libuv
if
(
${
BUILD_WITH_UV
}
)
if
(
${
BUILD_WITH_UV
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/libuv_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/libuv_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_WITH_UV
}
)
endif
(
${
BUILD_WITH_UV
}
)
# bdb
# bdb
#if(${BUILD_WITH_BDB})
#if(${BUILD_WITH_BDB})
#cat("${
CMAKE
_SUPPORT_DIR}/bdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
#cat("${
TD
_SUPPORT_DIR}/bdb_CMakeLists.txt.in" ${CONTRIB_TMP_FILE})
#endif(${BUILD_WITH_BDB})
#endif(${BUILD_WITH_BDB})
# sqlite
# sqlite
if
(
${
BUILD_WITH_SQLITE
}
)
if
(
${
BUILD_WITH_SQLITE
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/sqlite_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/sqlite_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_WITH_SQLITE
}
)
endif
(
${
BUILD_WITH_SQLITE
}
)
# lucene
# lucene
if
(
${
BUILD_WITH_LUCENE
}
)
if
(
${
BUILD_WITH_LUCENE
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/lucene_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/lucene_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
add_definitions
(
-DUSE_LUCENE
)
add_definitions
(
-DUSE_LUCENE
)
endif
(
${
BUILD_WITH_LUCENE
}
)
endif
(
${
BUILD_WITH_LUCENE
}
)
# NuRaft
# NuRaft
if
(
${
BUILD_WITH_NURAFT
}
)
if
(
${
BUILD_WITH_NURAFT
}
)
cat
(
"
${
CMAKE
_SUPPORT_DIR
}
/nuraft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
cat
(
"
${
TD
_SUPPORT_DIR
}
/nuraft_CMakeLists.txt.in"
${
CONTRIB_TMP_FILE
}
)
endif
(
${
BUILD_WITH_NURAFT
}
)
endif
(
${
BUILD_WITH_NURAFT
}
)
# download dependencies
# download dependencies
configure_file
(
${
CONTRIB_TMP_FILE
}
"
${
CMAKE
_CONTRIB_DIR
}
/deps-download/CMakeLists.txt"
)
configure_file
(
${
CONTRIB_TMP_FILE
}
"
${
TD
_CONTRIB_DIR
}
/deps-download/CMakeLists.txt"
)
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
-G
"
${
CMAKE_GENERATOR
}
"
.
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
-G
"
${
CMAKE_GENERATOR
}
"
.
WORKING_DIRECTORY
"
${
CMAKE
_CONTRIB_DIR
}
/deps-download"
)
WORKING_DIRECTORY
"
${
TD
_CONTRIB_DIR
}
/deps-download"
)
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
--build .
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
--build .
WORKING_DIRECTORY
"
${
CMAKE
_CONTRIB_DIR
}
/deps-download"
)
WORKING_DIRECTORY
"
${
TD
_CONTRIB_DIR
}
/deps-download"
)
# ================================================================================================
# ================================================================================================
# Build
# Build
...
@@ -105,7 +105,7 @@ endif(${BUILD_TEST})
...
@@ -105,7 +105,7 @@ endif(${BUILD_TEST})
# cJson
# cJson
# see https://stackoverflow.com/questions/37582508/silence-cmp0048-warnings-in-vendored-projects
# see https://stackoverflow.com/questions/37582508/silence-cmp0048-warnings-in-vendored-projects
set
(
CMAKE_PROJECT_INCLUDE_BEFORE
"
${
CMAKE
_SUPPORT_DIR
}
/EnableCMP0048.txt.in"
)
set
(
CMAKE_PROJECT_INCLUDE_BEFORE
"
${
TD
_SUPPORT_DIR
}
/EnableCMP0048.txt.in"
)
option
(
ENABLE_CJSON_TEST
"Enable building cJSON test"
OFF
)
option
(
ENABLE_CJSON_TEST
"Enable building cJSON test"
OFF
)
option
(
CJSON_OVERRIDE_BUILD_SHARED_LIBS
"Override BUILD_SHARED_LIBS with CJSON_BUILD_SHARED_LIBS"
ON
)
option
(
CJSON_OVERRIDE_BUILD_SHARED_LIBS
"Override BUILD_SHARED_LIBS with CJSON_BUILD_SHARED_LIBS"
ON
)
option
(
CJSON_BUILD_SHARED_LIBS
"Overrides BUILD_SHARED_LIBS if CJSON_OVERRIDE_BUILD_SHARED_LIBS is enabled"
OFF
)
option
(
CJSON_BUILD_SHARED_LIBS
"Overrides BUILD_SHARED_LIBS if CJSON_OVERRIDE_BUILD_SHARED_LIBS is enabled"
OFF
)
...
@@ -125,7 +125,7 @@ target_include_directories(
...
@@ -125,7 +125,7 @@ target_include_directories(
)
)
# zlib
# zlib
set
(
CMAKE_PROJECT_INCLUDE_BEFORE
"
${
CMAKE
_SUPPORT_DIR
}
/EnableCMP0048.txt.in"
)
set
(
CMAKE_PROJECT_INCLUDE_BEFORE
"
${
TD
_SUPPORT_DIR
}
/EnableCMP0048.txt.in"
)
add_subdirectory
(
zlib
)
add_subdirectory
(
zlib
)
target_include_directories
(
target_include_directories
(
zlibstatic
zlibstatic
...
...
docs/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -4,7 +4,7 @@ if(${BUILD_DOCS})
...
@@ -4,7 +4,7 @@ if(${BUILD_DOCS})
find_package
(
Doxygen
)
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
if
(
DOXYGEN_FOUND
)
# Build the doc
# Build the doc
set
(
DOXYGEN_IN
${
CMAKE
_SOURCE_DIR
}
/docs/Doxyfile.in
)
set
(
DOXYGEN_IN
${
TD
_SOURCE_DIR
}
/docs/Doxyfile.in
)
set
(
DOXYGEN_OUT
${
CMAKE_BINARY_DIR
}
/Doxyfile
)
set
(
DOXYGEN_OUT
${
CMAKE_BINARY_DIR
}
/Doxyfile
)
configure_file
(
${
DOXYGEN_IN
}
${
DOXYGEN_OUT
}
@ONLY
)
configure_file
(
${
DOXYGEN_IN
}
${
DOXYGEN_OUT
}
@ONLY
)
...
...
docs/Doxyfile.in
浏览文件 @
2662a3b6
...
@@ -829,7 +829,7 @@ WARN_LOGFILE =
...
@@ -829,7 +829,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
# Note: If this tag is empty the current directory is searched.
INPUT = @
CMAKE_SOURCE_DIR@/include @CMAKE
_SOURCE_DIR@/source
INPUT = @
TD_SOURCE_DIR@/include @TD
_SOURCE_DIR@/source
# This tag can be used to specify the character encoding of the source files
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
...
...
include/common/tglobal.h
浏览文件 @
2662a3b6
...
@@ -126,6 +126,7 @@ int32_t taosCreateLog(const char *logname, int32_t logFileNum, const char *cfgDi
...
@@ -126,6 +126,7 @@ int32_t taosCreateLog(const char *logname, int32_t logFileNum, const char *cfgDi
int32_t
taosInitCfg
(
const
char
*
cfgDir
,
const
char
*
envFile
,
const
char
*
apolloUrl
,
SArray
*
pArgs
,
bool
tsc
);
int32_t
taosInitCfg
(
const
char
*
cfgDir
,
const
char
*
envFile
,
const
char
*
apolloUrl
,
SArray
*
pArgs
,
bool
tsc
);
void
taosCleanupCfg
();
void
taosCleanupCfg
();
void
taosCfgDynamicOptions
(
const
char
*
option
,
const
char
*
value
);
void
taosCfgDynamicOptions
(
const
char
*
option
,
const
char
*
value
);
void
taosAddDataDir
(
int32_t
index
,
char
*
v1
,
int32_t
level
,
int32_t
primary
);
struct
SConfig
*
taosGetCfg
();
struct
SConfig
*
taosGetCfg
();
...
...
include/common/tgrant.h
0 → 100644
浏览文件 @
2662a3b6
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TDENGINE_GTANT_H
#define TDENGINE_GTANT_H
#ifdef __cplusplus
"C"
{
#endif
typedef
enum
{
TSDB_GRANT_ALL
,
TSDB_GRANT_TIME
,
TSDB_GRANT_USER
,
TSDB_GRANT_DB
,
TSDB_GRANT_TIMESERIES
,
TSDB_GRANT_DNODE
,
TSDB_GRANT_ACCT
,
TSDB_GRANT_STORAGE
,
TSDB_GRANT_SPEED
,
TSDB_GRANT_QUERY_TIME
,
TSDB_GRANT_CONNS
,
TSDB_GRANT_STREAMS
,
TSDB_GRANT_CPU_CORES
,
}
EGrantType
;
int32_t
grantInit
();
void
grantCleanUp
();
void
grantParseParameter
();
int32_t
grantCheck
(
EGrantType
grant
);
void
grantReset
(
EGrantType
grant
,
uint64_t
value
);
void
grantAdd
(
EGrantType
grant
,
uint64_t
value
);
void
grantRestore
(
EGrantType
grant
,
uint64_t
value
);
#ifdef __cplusplus
}
#endif
#endif
include/util/taoserror.h
浏览文件 @
2662a3b6
...
@@ -428,6 +428,108 @@ int32_t* taosGetErrno();
...
@@ -428,6 +428,108 @@ int32_t* taosGetErrno();
#define TSDB_CODE_WAL_INVALID_VER TAOS_DEF_ERROR_CODE(0, 0x1003)
#define TSDB_CODE_WAL_INVALID_VER TAOS_DEF_ERROR_CODE(0, 0x1003)
#define TSDB_CODE_WAL_OUT_OF_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1004)
#define TSDB_CODE_WAL_OUT_OF_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1004)
// http
#define TSDB_CODE_HTTP_SERVER_OFFLINE TAOS_DEF_ERROR_CODE(0, 0x1100) //"http server is not online"
#define TSDB_CODE_HTTP_UNSUPPORT_URL TAOS_DEF_ERROR_CODE(0, 0x1101) //"url is not support"
#define TSDB_CODE_HTTP_INVALID_URL TAOS_DEF_ERROR_CODE(0, 0x1102) //invalid url format"
#define TSDB_CODE_HTTP_NO_ENOUGH_MEMORY TAOS_DEF_ERROR_CODE(0, 0x1103) //"no enough memory"
#define TSDB_CODE_HTTP_REQUSET_TOO_BIG TAOS_DEF_ERROR_CODE(0, 0x1104) //"request size is too big"
#define TSDB_CODE_HTTP_NO_AUTH_INFO TAOS_DEF_ERROR_CODE(0, 0x1105) //"no auth info input"
#define TSDB_CODE_HTTP_NO_MSG_INPUT TAOS_DEF_ERROR_CODE(0, 0x1106) //"request is empty"
#define TSDB_CODE_HTTP_NO_SQL_INPUT TAOS_DEF_ERROR_CODE(0, 0x1107) //"no sql input"
#define TSDB_CODE_HTTP_NO_EXEC_USEDB TAOS_DEF_ERROR_CODE(0, 0x1108) //"no need to execute use db cmd"
#define TSDB_CODE_HTTP_SESSION_FULL TAOS_DEF_ERROR_CODE(0, 0x1109) //"session list was full"
#define TSDB_CODE_HTTP_GEN_TAOSD_TOKEN_ERR TAOS_DEF_ERROR_CODE(0, 0x110A) //"generate taosd token error"
#define TSDB_CODE_HTTP_INVALID_MULTI_REQUEST TAOS_DEF_ERROR_CODE(0, 0x110B) //"size of multi request is 0"
#define TSDB_CODE_HTTP_CREATE_GZIP_FAILED TAOS_DEF_ERROR_CODE(0, 0x110C) //"failed to create gzip"
#define TSDB_CODE_HTTP_FINISH_GZIP_FAILED TAOS_DEF_ERROR_CODE(0, 0x110D) //"failed to finish gzip"
#define TSDB_CODE_HTTP_LOGIN_FAILED TAOS_DEF_ERROR_CODE(0, 0x110E) //"failed to login"
#define TSDB_CODE_HTTP_INVALID_VERSION TAOS_DEF_ERROR_CODE(0, 0x1120) //"invalid http version"
#define TSDB_CODE_HTTP_INVALID_CONTENT_LENGTH TAOS_DEF_ERROR_CODE(0, 0x1121) //"invalid content length"
#define TSDB_CODE_HTTP_INVALID_AUTH_TYPE TAOS_DEF_ERROR_CODE(0, 0x1122) //"invalid type of Authorization"
#define TSDB_CODE_HTTP_INVALID_AUTH_FORMAT TAOS_DEF_ERROR_CODE(0, 0x1123) //"invalid format of Authorization"
#define TSDB_CODE_HTTP_INVALID_BASIC_AUTH TAOS_DEF_ERROR_CODE(0, 0x1124) //"invalid basic Authorization"
#define TSDB_CODE_HTTP_INVALID_TAOSD_AUTH TAOS_DEF_ERROR_CODE(0, 0x1125) //"invalid taosd Authorization"
#define TSDB_CODE_HTTP_PARSE_METHOD_FAILED TAOS_DEF_ERROR_CODE(0, 0x1126) //"failed to parse method"
#define TSDB_CODE_HTTP_PARSE_TARGET_FAILED TAOS_DEF_ERROR_CODE(0, 0x1127) //"failed to parse target"
#define TSDB_CODE_HTTP_PARSE_VERSION_FAILED TAOS_DEF_ERROR_CODE(0, 0x1128) //"failed to parse http version"
#define TSDB_CODE_HTTP_PARSE_SP_FAILED TAOS_DEF_ERROR_CODE(0, 0x1129) //"failed to parse sp"
#define TSDB_CODE_HTTP_PARSE_STATUS_FAILED TAOS_DEF_ERROR_CODE(0, 0x112A) //"failed to parse status"
#define TSDB_CODE_HTTP_PARSE_PHRASE_FAILED TAOS_DEF_ERROR_CODE(0, 0x112B) //"failed to parse phrase"
#define TSDB_CODE_HTTP_PARSE_CRLF_FAILED TAOS_DEF_ERROR_CODE(0, 0x112C) //"failed to parse crlf"
#define TSDB_CODE_HTTP_PARSE_HEADER_FAILED TAOS_DEF_ERROR_CODE(0, 0x112D) //"failed to parse header"
#define TSDB_CODE_HTTP_PARSE_HEADER_KEY_FAILED TAOS_DEF_ERROR_CODE(0, 0x112E) //"failed to parse header key"
#define TSDB_CODE_HTTP_PARSE_HEADER_VAL_FAILED TAOS_DEF_ERROR_CODE(0, 0x112F) //"failed to parse header val"
#define TSDB_CODE_HTTP_PARSE_CHUNK_SIZE_FAILED TAOS_DEF_ERROR_CODE(0, 0x1130) //"failed to parse chunk size"
#define TSDB_CODE_HTTP_PARSE_CHUNK_FAILED TAOS_DEF_ERROR_CODE(0, 0x1131) //"failed to parse chunk"
#define TSDB_CODE_HTTP_PARSE_END_FAILED TAOS_DEF_ERROR_CODE(0, 0x1132) //"failed to parse end section"
#define TSDB_CODE_HTTP_PARSE_INVALID_STATE TAOS_DEF_ERROR_CODE(0, 0x1134) //"invalid parse state"
#define TSDB_CODE_HTTP_PARSE_ERROR_STATE TAOS_DEF_ERROR_CODE(0, 0x1135) //"failed to parse error section"
#define TSDB_CODE_HTTP_GC_QUERY_NULL TAOS_DEF_ERROR_CODE(0, 0x1150) //"query size is 0"
#define TSDB_CODE_HTTP_GC_QUERY_SIZE TAOS_DEF_ERROR_CODE(0, 0x1151) //"query size can not more than 100"
#define TSDB_CODE_HTTP_GC_REQ_PARSE_ERROR TAOS_DEF_ERROR_CODE(0, 0x1152) //"parse grafana json error"
#define TSDB_CODE_HTTP_TG_DB_NOT_INPUT TAOS_DEF_ERROR_CODE(0, 0x1160) //"database name can not be null"
#define TSDB_CODE_HTTP_TG_DB_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x1161) //"database name too long"
#define TSDB_CODE_HTTP_TG_INVALID_JSON TAOS_DEF_ERROR_CODE(0, 0x1162) //"invalid telegraf json fromat"
#define TSDB_CODE_HTTP_TG_METRICS_NULL TAOS_DEF_ERROR_CODE(0, 0x1163) //"metrics size is 0"
#define TSDB_CODE_HTTP_TG_METRICS_SIZE TAOS_DEF_ERROR_CODE(0, 0x1164) //"metrics size can not more than 1K"
#define TSDB_CODE_HTTP_TG_METRIC_NULL TAOS_DEF_ERROR_CODE(0, 0x1165) //"metric name not find"
#define TSDB_CODE_HTTP_TG_METRIC_TYPE TAOS_DEF_ERROR_CODE(0, 0x1166) //"metric name type should be string"
#define TSDB_CODE_HTTP_TG_METRIC_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1167) //"metric name length is 0"
#define TSDB_CODE_HTTP_TG_METRIC_NAME_LONG TAOS_DEF_ERROR_CODE(0, 0x1168) //"metric name length too long"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_NULL TAOS_DEF_ERROR_CODE(0, 0x1169) //"timestamp not find"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_TYPE TAOS_DEF_ERROR_CODE(0, 0x116A) //"timestamp type should be integer"
#define TSDB_CODE_HTTP_TG_TIMESTAMP_VAL_NULL TAOS_DEF_ERROR_CODE(0, 0x116B) //"timestamp value smaller than 0"
#define TSDB_CODE_HTTP_TG_TAGS_NULL TAOS_DEF_ERROR_CODE(0, 0x116C) //"tags not find"
#define TSDB_CODE_HTTP_TG_TAGS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x116D) //"tags size is 0"
#define TSDB_CODE_HTTP_TG_TAGS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x116E) //"tags size too long"
#define TSDB_CODE_HTTP_TG_TAG_NULL TAOS_DEF_ERROR_CODE(0, 0x116F) //"tag is null"
#define TSDB_CODE_HTTP_TG_TAG_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1170) //"tag name is null"
#define TSDB_CODE_HTTP_TG_TAG_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x1171) //"tag name length too long"
#define TSDB_CODE_HTTP_TG_TAG_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x1172) //"tag value type should be number or string"
#define TSDB_CODE_HTTP_TG_TAG_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x1173) //"tag value is null"
#define TSDB_CODE_HTTP_TG_TABLE_NULL TAOS_DEF_ERROR_CODE(0, 0x1174) //"table is null"
#define TSDB_CODE_HTTP_TG_TABLE_SIZE TAOS_DEF_ERROR_CODE(0, 0x1175) //"table name length too long"
#define TSDB_CODE_HTTP_TG_FIELDS_NULL TAOS_DEF_ERROR_CODE(0, 0x1176) //"fields not find"
#define TSDB_CODE_HTTP_TG_FIELDS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x1177) //"fields size is 0"
#define TSDB_CODE_HTTP_TG_FIELDS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x1178) //"fields size too long"
#define TSDB_CODE_HTTP_TG_FIELD_NULL TAOS_DEF_ERROR_CODE(0, 0x1179) //"field is null"
#define TSDB_CODE_HTTP_TG_FIELD_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x117A) //"field name is null"
#define TSDB_CODE_HTTP_TG_FIELD_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x117B) //"field name length too long"
#define TSDB_CODE_HTTP_TG_FIELD_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x117C) //"field value type should be number or string"
#define TSDB_CODE_HTTP_TG_FIELD_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x117D) //"field value is null"
#define TSDB_CODE_HTTP_TG_HOST_NOT_STRING TAOS_DEF_ERROR_CODE(0, 0x117E) //"host type should be string"
#define TSDB_CODE_HTTP_TG_STABLE_NOT_EXIST TAOS_DEF_ERROR_CODE(0, 0x117F) //"stable not exist"
#define TSDB_CODE_HTTP_OP_DB_NOT_INPUT TAOS_DEF_ERROR_CODE(0, 0x1190) //"database name can not be null"
#define TSDB_CODE_HTTP_OP_DB_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x1191) //"database name too long"
#define TSDB_CODE_HTTP_OP_INVALID_JSON TAOS_DEF_ERROR_CODE(0, 0x1192) //"invalid opentsdb json fromat"
#define TSDB_CODE_HTTP_OP_METRICS_NULL TAOS_DEF_ERROR_CODE(0, 0x1193) //"metrics size is 0"
#define TSDB_CODE_HTTP_OP_METRICS_SIZE TAOS_DEF_ERROR_CODE(0, 0x1194) //"metrics size can not more than 10K"
#define TSDB_CODE_HTTP_OP_METRIC_NULL TAOS_DEF_ERROR_CODE(0, 0x1195) //"metric name not find"
#define TSDB_CODE_HTTP_OP_METRIC_TYPE TAOS_DEF_ERROR_CODE(0, 0x1196) //"metric name type should be string"
#define TSDB_CODE_HTTP_OP_METRIC_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x1197) //"metric name length is 0"
#define TSDB_CODE_HTTP_OP_METRIC_NAME_LONG TAOS_DEF_ERROR_CODE(0, 0x1198) //"metric name length can not more than 22"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_NULL TAOS_DEF_ERROR_CODE(0, 0x1199) //"timestamp not find"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_TYPE TAOS_DEF_ERROR_CODE(0, 0x119A) //"timestamp type should be integer"
#define TSDB_CODE_HTTP_OP_TIMESTAMP_VAL_NULL TAOS_DEF_ERROR_CODE(0, 0x119B) //"timestamp value smaller than 0"
#define TSDB_CODE_HTTP_OP_TAGS_NULL TAOS_DEF_ERROR_CODE(0, 0x119C) //"tags not find"
#define TSDB_CODE_HTTP_OP_TAGS_SIZE_0 TAOS_DEF_ERROR_CODE(0, 0x119D) //"tags size is 0"
#define TSDB_CODE_HTTP_OP_TAGS_SIZE_LONG TAOS_DEF_ERROR_CODE(0, 0x119E) //"tags size too long"
#define TSDB_CODE_HTTP_OP_TAG_NULL TAOS_DEF_ERROR_CODE(0, 0x119F) //"tag is null"
#define TSDB_CODE_HTTP_OP_TAG_NAME_NULL TAOS_DEF_ERROR_CODE(0, 0x11A0) //"tag name is null"
#define TSDB_CODE_HTTP_OP_TAG_NAME_SIZE TAOS_DEF_ERROR_CODE(0, 0x11A1) //"tag name length too long"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x11A2) //"tag value type should be boolean number or string"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x11A3) //"tag value is null"
#define TSDB_CODE_HTTP_OP_TAG_VALUE_TOO_LONG TAOS_DEF_ERROR_CODE(0, 0x11A4) //"tag value can not more than 64"
#define TSDB_CODE_HTTP_OP_VALUE_NULL TAOS_DEF_ERROR_CODE(0, 0x11A5) //"value not find"
#define TSDB_CODE_HTTP_OP_VALUE_TYPE TAOS_DEF_ERROR_CODE(0, 0x11A6) //"value type should be boolean number or string"
#define TSDB_CODE_HTTP_REQUEST_JSON_ERROR TAOS_DEF_ERROR_CODE(0, 0x1F00) //"http request json error"
// tfs
// tfs
#define TSDB_CODE_FS_APP_ERROR TAOS_DEF_ERROR_CODE(0, 0x2200)
#define TSDB_CODE_FS_APP_ERROR TAOS_DEF_ERROR_CODE(0, 0x2200)
#define TSDB_CODE_FS_INVLD_CFG TAOS_DEF_ERROR_CODE(0, 0x2201)
#define TSDB_CODE_FS_INVLD_CFG TAOS_DEF_ERROR_CODE(0, 0x2201)
...
...
source/client/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src CLIENT_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src CLIENT_SRC)
add_library
(
taos
${
CLIENT_SRC
}
)
add_library
(
taos
${
CLIENT_SRC
}
)
target_include_directories
(
target_include_directories
(
taos
taos
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/client"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/client"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/client/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -19,12 +19,12 @@ TARGET_LINK_LIBRARIES(
...
@@ -19,12 +19,12 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
clientTest
clientTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/client/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/client/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/client/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/client/inc"
)
)
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
tmqTest
tmqTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/client/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/client/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/client/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/client/inc"
)
)
source/common/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,11 +2,11 @@ aux_source_directory(src COMMON_SRC)
...
@@ -2,11 +2,11 @@ aux_source_directory(src COMMON_SRC)
add_library
(
common STATIC
${
COMMON_SRC
}
)
add_library
(
common STATIC
${
COMMON_SRC
}
)
target_include_directories
(
target_include_directories
(
common
common
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/common"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/common"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
IF
(
${
TD_WINDOWS
}
)
IF
(
${
TD_WINDOWS
}
)
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/contrib/pthread-win32"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/contrib/pthread-win32"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/contrib/gnuregex"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/contrib/gnuregex"
ENDIF
()
ENDIF
()
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/common/src/tglobal.c
浏览文件 @
2662a3b6
...
@@ -173,7 +173,7 @@ uint32_t tsMaxRange = 500; // max range
...
@@ -173,7 +173,7 @@ uint32_t tsMaxRange = 500; // max range
uint32_t
tsCurRange
=
100
;
// range
uint32_t
tsCurRange
=
100
;
// range
char
tsCompressor
[
32
]
=
"ZSTD_COMPRESSOR"
;
// ZSTD_COMPRESSOR or GZIP_COMPRESSOR
char
tsCompressor
[
32
]
=
"ZSTD_COMPRESSOR"
;
// ZSTD_COMPRESSOR or GZIP_COMPRESSOR
static
void
taosAddDataDir
(
int32_t
index
,
char
*
v1
,
int32_t
level
,
int32_t
primary
)
{
void
taosAddDataDir
(
int32_t
index
,
char
*
v1
,
int32_t
level
,
int32_t
primary
)
{
tstrncpy
(
tsDiskCfg
[
index
].
dir
,
v1
,
TSDB_FILENAME_LEN
);
tstrncpy
(
tsDiskCfg
[
index
].
dir
,
v1
,
TSDB_FILENAME_LEN
);
tsDiskCfg
[
index
].
level
=
level
;
tsDiskCfg
[
index
].
level
=
level
;
tsDiskCfg
[
index
].
primary
=
primary
;
tsDiskCfg
[
index
].
primary
=
primary
;
...
...
source/common/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
commonTest
commonTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/common/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/common/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/common/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/common/inc"
)
)
# tmsg test
# tmsg test
...
@@ -24,5 +24,5 @@ TARGET_INCLUDE_DIRECTORIES(
...
@@ -24,5 +24,5 @@ TARGET_INCLUDE_DIRECTORIES(
# "tmsgTest.cpp"
# "tmsgTest.cpp"
# "../src/tmsg.c"
# "../src/tmsg.c"
# )
# )
# target_include_directories(tmsgTest PUBLIC "${
CMAKE
_SOURCE_DIR}/include/common/")
# target_include_directories(tmsgTest PUBLIC "${
TD
_SOURCE_DIR}/include/common/")
# target_link_libraries(tmsgTest PUBLIC os util gtest gtest_main)
# target_link_libraries(tmsgTest PUBLIC os util gtest gtest_main)
\ No newline at end of file
source/dnode/bnode/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src BNODE_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src BNODE_SRC)
add_library
(
bnode STATIC
${
BNODE_SRC
}
)
add_library
(
bnode STATIC
${
BNODE_SRC
}
)
target_include_directories
(
target_include_directories
(
bnode
bnode
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/bnode"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/bnode"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/dnode/mgmt/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -11,7 +11,7 @@ target_link_libraries(
...
@@ -11,7 +11,7 @@ target_link_libraries(
)
)
target_include_directories
(
target_include_directories
(
dnode
dnode
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/mgmt"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/mgmt"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/dnode/mnode/impl/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
add_library
(
mnode STATIC
${
MNODE_SRC
}
)
add_library
(
mnode STATIC
${
MNODE_SRC
}
)
target_include_directories
(
target_include_directories
(
mnode
mnode
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/mnode"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/mnode"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/dnode/mnode/sdb/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src MNODE_SRC)
add_library
(
sdb STATIC
${
MNODE_SRC
}
)
add_library
(
sdb STATIC
${
MNODE_SRC
}
)
target_include_directories
(
target_include_directories
(
sdb
sdb
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/mnode/sdb"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/mnode/sdb"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/dnode/qnode/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src QNODE_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src QNODE_SRC)
add_library
(
qnode STATIC
${
QNODE_SRC
}
)
add_library
(
qnode STATIC
${
QNODE_SRC
}
)
target_include_directories
(
target_include_directories
(
qnode
qnode
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/qnode"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/qnode"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/dnode/snode/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src SNODE_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src SNODE_SRC)
add_library
(
snode STATIC
${
SNODE_SRC
}
)
add_library
(
snode STATIC
${
SNODE_SRC
}
)
target_include_directories
(
target_include_directories
(
snode
snode
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/dnode/snode"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/dnode/snode"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
private
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/dnode/vnode/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -11,7 +11,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
...
@@ -11,7 +11,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
# )
# )
# target_include_directories(tqTest
# target_include_directories(tqTest
# PUBLIC
# PUBLIC
# "${
CMAKE
_SOURCE_DIR}/include/server/vnode/tq"
# "${
TD
_SOURCE_DIR}/include/server/vnode/tq"
# "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# )
# )
...
@@ -33,7 +33,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
...
@@ -33,7 +33,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SOURCE_LIST)
# TARGET_INCLUDE_DIRECTORIES(
# TARGET_INCLUDE_DIRECTORIES(
# tsdbSmaTest
# tsdbSmaTest
# PUBLIC "${
CMAKE
_SOURCE_DIR}/include/common"
# PUBLIC "${
TD
_SOURCE_DIR}/include/common"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../src/inc"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../src/inc"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../inc"
# )
# )
\ No newline at end of file
source/libs/cache/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,6 +2,6 @@ aux_source_directory(src CACHE_SRC)
...
@@ -2,6 +2,6 @@ aux_source_directory(src CACHE_SRC)
add_library
(
cache STATIC
${
CACHE_SRC
}
)
add_library
(
cache STATIC
${
CACHE_SRC
}
)
target_include_directories
(
target_include_directories
(
cache
cache
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/cache"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/cache"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
\ No newline at end of file
source/libs/catalog/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src CATALOG_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src CATALOG_SRC)
add_library
(
catalog STATIC
${
CATALOG_SRC
}
)
add_library
(
catalog STATIC
${
CATALOG_SRC
}
)
target_include_directories
(
target_include_directories
(
catalog
catalog
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/catalog"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/catalog"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/catalog/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,8 +13,8 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
catalogTest
catalogTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/catalog/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/catalog/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/catalog/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/catalog/inc"
)
)
# add_test(
# add_test(
...
...
source/libs/command/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src COMMAND_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src COMMAND_SRC)
add_library
(
command STATIC
${
COMMAND_SRC
}
)
add_library
(
command STATIC
${
COMMAND_SRC
}
)
target_include_directories
(
target_include_directories
(
command
command
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/command"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/command"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/command/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -8,8 +8,8 @@ ADD_EXECUTABLE(commandTest ${SOURCE_LIST})
...
@@ -8,8 +8,8 @@ ADD_EXECUTABLE(commandTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
commandTest
commandTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/command/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/command/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/command/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/command/inc"
)
)
TARGET_LINK_LIBRARIES
(
TARGET_LINK_LIBRARIES
(
...
...
source/libs/executor/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -4,7 +4,7 @@ aux_source_directory(src EXECUTOR_SRC)
...
@@ -4,7 +4,7 @@ aux_source_directory(src EXECUTOR_SRC)
add_library
(
executor STATIC
${
EXECUTOR_SRC
}
)
add_library
(
executor STATIC
${
EXECUTOR_SRC
}
)
#set_target_properties(executor PROPERTIES
#set_target_properties(executor PROPERTIES
# IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libexecutor.a"
# IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/libexecutor.a"
# INTERFACE_INCLUDE_DIRECTORIES "${
CMAKE
_SOURCE_DIR}/include/libs/executor"
# INTERFACE_INCLUDE_DIRECTORIES "${
TD
_SOURCE_DIR}/include/libs/executor"
# )
# )
target_link_libraries
(
executor
target_link_libraries
(
executor
...
@@ -13,7 +13,7 @@ target_link_libraries(executor
...
@@ -13,7 +13,7 @@ target_link_libraries(executor
target_include_directories
(
target_include_directories
(
executor
executor
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/executor"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/executor"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/executor/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
executorTest
executorTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/executor/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/executor/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/executor/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/executor/inc"
)
)
source/libs/function/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -4,8 +4,8 @@ add_library(function STATIC ${FUNCTION_SRC})
...
@@ -4,8 +4,8 @@ add_library(function STATIC ${FUNCTION_SRC})
target_include_directories
(
target_include_directories
(
function
function
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/function"
"
${
TD
_SOURCE_DIR
}
/include/libs/function"
"
${
CMAKE
_SOURCE_DIR
}
/contrib/libuv/include"
"
${
TD
_SOURCE_DIR
}
/contrib/libuv/include"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
@@ -19,9 +19,9 @@ add_executable(runUdf test/runUdf.c)
...
@@ -19,9 +19,9 @@ add_executable(runUdf test/runUdf.c)
target_include_directories
(
target_include_directories
(
runUdf
runUdf
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/function"
"
${
TD
_SOURCE_DIR
}
/include/libs/function"
"
${
CMAKE
_SOURCE_DIR
}
/contrib/libuv/include"
"
${
TD
_SOURCE_DIR
}
/contrib/libuv/include"
"
${
CMAKE
_SOURCE_DIR
}
/include/os"
"
${
TD
_SOURCE_DIR
}
/include/os"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
@@ -34,8 +34,8 @@ add_library(udf1 MODULE test/udf1.c)
...
@@ -34,8 +34,8 @@ add_library(udf1 MODULE test/udf1.c)
target_include_directories
(
target_include_directories
(
udf1
udf1
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/function"
"
${
TD
_SOURCE_DIR
}
/include/libs/function"
"
${
CMAKE
_SOURCE_DIR
}
/include/os"
"
${
TD
_SOURCE_DIR
}
/include/os"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
@@ -44,8 +44,8 @@ add_executable(udfd src/udfd.c)
...
@@ -44,8 +44,8 @@ add_executable(udfd src/udfd.c)
target_include_directories
(
target_include_directories
(
udfd
udfd
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/function"
"
${
TD
_SOURCE_DIR
}
/include/libs/function"
"
${
CMAKE
_SOURCE_DIR
}
/contrib/libuv/include"
"
${
TD
_SOURCE_DIR
}
/contrib/libuv/include"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/index/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,8 +2,8 @@ aux_source_directory(src INDEX_SRC)
...
@@ -2,8 +2,8 @@ aux_source_directory(src INDEX_SRC)
add_library
(
index STATIC
${
INDEX_SRC
}
)
add_library
(
index STATIC
${
INDEX_SRC
}
)
target_include_directories
(
target_include_directories
(
index
index
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/os"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/os"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
@@ -17,9 +17,9 @@ target_link_libraries(
...
@@ -17,9 +17,9 @@ target_link_libraries(
if
(
${
BUILD_WITH_LUCENE
}
)
if
(
${
BUILD_WITH_LUCENE
}
)
target_include_directories
(
target_include_directories
(
index
index
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/deps/lucene/include"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/deps/lucene/include"
)
)
LINK_DIRECTORIES
(
"
${
CMAKE
_SOURCE_DIR
}
/deps/lucene/debug/src/core"
)
LINK_DIRECTORIES
(
"
${
TD
_SOURCE_DIR
}
/deps/lucene/debug/src/core"
)
target_link_libraries
(
target_link_libraries
(
index
index
PUBLIC lucene++
PUBLIC lucene++
...
...
source/libs/index/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -28,30 +28,30 @@ target_sources(jsonUT
...
@@ -28,30 +28,30 @@ target_sources(jsonUT
)
)
target_include_directories
(
indexTest
target_include_directories
(
indexTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
fstTest
target_include_directories
(
fstTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
fstUT
target_include_directories
(
fstUT
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
UtilUT
target_include_directories
(
UtilUT
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
jsonUT
target_include_directories
(
jsonUT
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/index"
"
${
TD
_SOURCE_DIR
}
/include/libs/index"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_link_libraries
(
indexTest
target_link_libraries
(
indexTest
...
...
source/libs/monitor/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src MONITOR_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src MONITOR_SRC)
add_library
(
monitor STATIC
${
MONITOR_SRC
}
)
add_library
(
monitor STATIC
${
MONITOR_SRC
}
)
target_include_directories
(
target_include_directories
(
monitor
monitor
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/monitor"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/monitor"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/nodes/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src NODES_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src NODES_SRC)
add_library
(
nodes STATIC
${
NODES_SRC
}
)
add_library
(
nodes STATIC
${
NODES_SRC
}
)
target_include_directories
(
target_include_directories
(
nodes
nodes
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/nodes"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/nodes"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/libs/nodes/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(nodesTest ${SOURCE_LIST})
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(nodesTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
nodesTest
nodesTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/nodes/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/nodes/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/nodes/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/nodes/inc"
)
)
TARGET_LINK_LIBRARIES
(
TARGET_LINK_LIBRARIES
(
...
...
source/libs/parser/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src PARSER_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src PARSER_SRC)
add_library
(
parser STATIC
${
PARSER_SRC
}
)
add_library
(
parser STATIC
${
PARSER_SRC
}
)
target_include_directories
(
target_include_directories
(
parser
parser
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/parser"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/parser"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/parser/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(parserTest ${SOURCE_LIST})
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(parserTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
parserTest
parserTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/parser/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/parser/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/parser/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/parser/inc"
)
)
TARGET_LINK_LIBRARIES
(
TARGET_LINK_LIBRARIES
(
...
...
source/libs/planner/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src PLANNER_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src PLANNER_SRC)
add_library
(
planner STATIC
${
PLANNER_SRC
}
)
add_library
(
planner STATIC
${
PLANNER_SRC
}
)
target_include_directories
(
target_include_directories
(
planner
planner
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/planner"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/planner"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/planner/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -18,7 +18,7 @@ TARGET_LINK_LIBRARIES(
...
@@ -18,7 +18,7 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
plannerTest
plannerTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/planner/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/planner/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/planner/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/planner/inc"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/parser/test"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/parser/test"
)
)
source/libs/qcom/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src QUERY_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src QUERY_SRC)
add_library
(
qcom STATIC
${
QUERY_SRC
}
)
add_library
(
qcom STATIC
${
QUERY_SRC
}
)
target_include_directories
(
target_include_directories
(
qcom
qcom
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/qcom"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/qcom"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/qcom/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(queryUtilTest ${SOURCE_LIST})
...
@@ -9,8 +9,8 @@ ADD_EXECUTABLE(queryUtilTest ${SOURCE_LIST})
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
queryUtilTest
queryUtilTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/qcom/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/qcom/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/qcom/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/qcom/inc"
)
)
TARGET_LINK_LIBRARIES
(
TARGET_LINK_LIBRARIES
(
...
...
source/libs/qworker/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@ aux_source_directory(src QWORKER_SRC)
...
@@ -3,7 +3,7 @@ aux_source_directory(src QWORKER_SRC)
add_library
(
qworker STATIC
${
QWORKER_SRC
}
)
add_library
(
qworker STATIC
${
QWORKER_SRC
}
)
target_include_directories
(
target_include_directories
(
qworker
qworker
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/qworker"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/qworker"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/qworker/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
qworkerTest
qworkerTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/qworker/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/qworker/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/qworker/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/qworker/inc"
)
)
source/libs/scalar/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@ aux_source_directory(src SCALAR_SRC)
...
@@ -3,7 +3,7 @@ aux_source_directory(src SCALAR_SRC)
add_library
(
scalar STATIC
${
SCALAR_SRC
}
)
add_library
(
scalar STATIC
${
SCALAR_SRC
}
)
target_include_directories
(
target_include_directories
(
scalar
scalar
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/scalar"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/scalar"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/scalar/test/filter/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
filterTest
filterTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/scalar/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/scalar/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/scalar/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/scalar/inc"
)
)
source/libs/scalar/test/scalar/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
scalarTest
scalarTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/scalar/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/scalar/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/scalar/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/scalar/inc"
)
)
source/libs/scheduler/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@ add_library(scheduler STATIC ${SCHEDULER_SRC})
...
@@ -3,7 +3,7 @@ add_library(scheduler STATIC ${SCHEDULER_SRC})
target_include_directories
(
target_include_directories
(
scheduler
scheduler
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/scheduler"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/scheduler"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/scheduler/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
...
@@ -13,6 +13,6 @@ TARGET_LINK_LIBRARIES(
TARGET_INCLUDE_DIRECTORIES
(
TARGET_INCLUDE_DIRECTORIES
(
schedulerTest
schedulerTest
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/scheduler/"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/scheduler/"
PRIVATE
"
${
CMAKE
_SOURCE_DIR
}
/source/libs/scheduler/inc"
PRIVATE
"
${
TD
_SOURCE_DIR
}
/source/libs/scheduler/inc"
)
)
source/libs/stream/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src STREAM_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src STREAM_SRC)
add_library
(
stream STATIC
${
STREAM_SRC
}
)
add_library
(
stream STATIC
${
STREAM_SRC
}
)
target_include_directories
(
target_include_directories
(
stream
stream
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/stream"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/stream"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/sync/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -11,7 +11,7 @@ target_link_libraries(
...
@@ -11,7 +11,7 @@ target_link_libraries(
target_include_directories
(
target_include_directories
(
sync
sync
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/sync/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -204,202 +204,202 @@ target_sources(syncLogStoreCheck
...
@@ -204,202 +204,202 @@ target_sources(syncLogStoreCheck
target_include_directories
(
syncTest
target_include_directories
(
syncTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncEnvTest
target_include_directories
(
syncEnvTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncPingTimerTest
target_include_directories
(
syncPingTimerTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIOTickQTest
target_include_directories
(
syncIOTickQTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIOTickPingTest
target_include_directories
(
syncIOTickPingTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIOSendMsgTest
target_include_directories
(
syncIOSendMsgTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIOClientTest
target_include_directories
(
syncIOClientTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIOServerTest
target_include_directories
(
syncIOServerTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncRaftStoreTest
target_include_directories
(
syncRaftStoreTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncEnqTest
target_include_directories
(
syncEnqTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIndexTest
target_include_directories
(
syncIndexTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncInitTest
target_include_directories
(
syncInitTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncUtilTest
target_include_directories
(
syncUtilTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncVotesGrantedTest
target_include_directories
(
syncVotesGrantedTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncVotesRespondTest
target_include_directories
(
syncVotesRespondTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncIndexMgrTest
target_include_directories
(
syncIndexMgrTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncLogStoreTest
target_include_directories
(
syncLogStoreTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncEntryTest
target_include_directories
(
syncEntryTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncRequestVoteTest
target_include_directories
(
syncRequestVoteTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncRequestVoteReplyTest
target_include_directories
(
syncRequestVoteReplyTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncAppendEntriesTest
target_include_directories
(
syncAppendEntriesTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncAppendEntriesReplyTest
target_include_directories
(
syncAppendEntriesReplyTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncClientRequestTest
target_include_directories
(
syncClientRequestTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncTimeoutTest
target_include_directories
(
syncTimeoutTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncPingTest
target_include_directories
(
syncPingTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncPingReplyTest
target_include_directories
(
syncPingReplyTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncRpcMsgTest
target_include_directories
(
syncRpcMsgTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncPingTimerTest2
target_include_directories
(
syncPingTimerTest2
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncPingSelfTest
target_include_directories
(
syncPingSelfTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncElectTest
target_include_directories
(
syncElectTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncElectTest2
target_include_directories
(
syncElectTest2
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncElectTest3
target_include_directories
(
syncElectTest3
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncEncodeTest
target_include_directories
(
syncEncodeTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncWriteTest
target_include_directories
(
syncWriteTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncReplicateTest
target_include_directories
(
syncReplicateTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncReplicateTest2
target_include_directories
(
syncReplicateTest2
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncReplicateTest3
target_include_directories
(
syncReplicateTest3
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncReplicateLoadTest
target_include_directories
(
syncReplicateLoadTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncRefTest
target_include_directories
(
syncRefTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
syncLogStoreCheck
target_include_directories
(
syncLogStoreCheck
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/sync"
"
${
TD
_SOURCE_DIR
}
/include/libs/sync"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
...
...
source/libs/tfs/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src TFS_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src TFS_SRC)
add_library
(
tfs STATIC
${
TFS_SRC
}
)
add_library
(
tfs STATIC
${
TFS_SRC
}
)
target_include_directories
(
target_include_directories
(
tfs
tfs
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/tfs"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/tfs"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/transport/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src TRANSPORT_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src TRANSPORT_SRC)
add_library
(
transport STATIC
${
TRANSPORT_SRC
}
)
add_library
(
transport STATIC
${
TRANSPORT_SRC
}
)
target_include_directories
(
target_include_directories
(
transport
transport
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
@@ -18,7 +18,7 @@ if (${BUILD_WITH_UV_TRANS})
...
@@ -18,7 +18,7 @@ if (${BUILD_WITH_UV_TRANS})
if
(
${
BUILD_WITH_UV
}
)
if
(
${
BUILD_WITH_UV
}
)
target_include_directories
(
target_include_directories
(
transport
transport
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/contrib/libuv/include"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/contrib/libuv/include"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
source/libs/transport/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -33,7 +33,7 @@ target_sources(pushServer
...
@@ -33,7 +33,7 @@ target_sources(pushServer
target_include_directories
(
transportTest
target_include_directories
(
transportTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
...
@@ -54,7 +54,7 @@ target_link_libraries (transUT
...
@@ -54,7 +54,7 @@ target_link_libraries (transUT
target_include_directories
(
client
target_include_directories
(
client
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
...
@@ -67,13 +67,13 @@ target_link_libraries (client
...
@@ -67,13 +67,13 @@ target_link_libraries (client
)
)
target_include_directories
(
server
target_include_directories
(
server
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_include_directories
(
transUT
target_include_directories
(
transUT
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
...
@@ -86,7 +86,7 @@ target_link_libraries (server
...
@@ -86,7 +86,7 @@ target_link_libraries (server
)
)
target_include_directories
(
syncClient
target_include_directories
(
syncClient
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_link_libraries
(
syncClient
target_link_libraries
(
syncClient
...
@@ -99,7 +99,7 @@ target_link_libraries (syncClient
...
@@ -99,7 +99,7 @@ target_link_libraries (syncClient
target_include_directories
(
pushServer
target_include_directories
(
pushServer
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport"
"
${
TD
_SOURCE_DIR
}
/include/libs/transport"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
target_link_libraries
(
pushServer
target_link_libraries
(
pushServer
...
...
source/libs/wal/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,7 +2,7 @@ aux_source_directory(src WAL_SRC)
...
@@ -2,7 +2,7 @@ aux_source_directory(src WAL_SRC)
add_library
(
wal STATIC
${
WAL_SRC
}
)
add_library
(
wal STATIC
${
WAL_SRC
}
)
target_include_directories
(
target_include_directories
(
wal
wal
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/wal"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/libs/wal"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
...
...
source/libs/wal/test/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -5,7 +5,7 @@ target_sources(walTest
...
@@ -5,7 +5,7 @@ target_sources(walTest
)
)
target_include_directories
(
walTest
target_include_directories
(
walTest
PUBLIC
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/libs/wal"
"
${
TD
_SOURCE_DIR
}
/include/libs/wal"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../inc"
)
)
...
...
source/os/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -2,11 +2,11 @@ aux_source_directory(src OS_SRC)
...
@@ -2,11 +2,11 @@ aux_source_directory(src OS_SRC)
add_library
(
os STATIC
${
OS_SRC
}
)
add_library
(
os STATIC
${
OS_SRC
}
)
target_include_directories
(
target_include_directories
(
os
os
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/os"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/os"
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include"
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/util"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/util"
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/contrib/pthread"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/contrib/pthread"
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/contrib/gnuregex"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/contrib/gnuregex"
)
)
# iconv
# iconv
find_path
(
IconvApiIncludes iconv.h PATHS
)
find_path
(
IconvApiIncludes iconv.h PATHS
)
...
...
source/util/CMakeLists.txt
浏览文件 @
2662a3b6
...
@@ -3,7 +3,7 @@ aux_source_directory(src UTIL_SRC)
...
@@ -3,7 +3,7 @@ aux_source_directory(src UTIL_SRC)
add_library
(
util STATIC
${
UTIL_SRC
}
)
add_library
(
util STATIC
${
UTIL_SRC
}
)
target_include_directories
(
target_include_directories
(
util
util
PUBLIC
"
${
CMAKE
_SOURCE_DIR
}
/include/util"
PUBLIC
"
${
TD
_SOURCE_DIR
}
/include/util"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
)
target_link_libraries
(
target_link_libraries
(
...
...
tools/CMakeLists.txt
浏览文件 @
2662a3b6
IF
(
TD_TAOS_TOOLS
)
IF
(
TD_TAOS_TOOLS
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/tools/taos_tools/deps/avro/lang/c/src
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/tools/taos_tools/deps/avro/lang/c/src
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/include/client
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/include/client
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/include/common
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/include/common
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/include/util
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/include/util
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/include/os
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/include/os
)
INCLUDE_DIRECTORIES
(
${
CMAKE
_SOURCE_DIR
}
/include/libs/transport
)
INCLUDE_DIRECTORIES
(
${
TD
_SOURCE_DIR
}
/include/libs/transport
)
ADD_SUBDIRECTORY
(
taos-tools
)
ADD_SUBDIRECTORY
(
taos-tools
)
ENDIF
()
ENDIF
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录