Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
45ea0c5d
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
45ea0c5d
编写于
8月 04, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-1037 minor changes
上级
3ff60c3e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
13 deletion
+16
-13
deps/MQTT-C/CMakeLists.txt
deps/MQTT-C/CMakeLists.txt
+4
-4
deps/cJson/CMakeLists.txt
deps/cJson/CMakeLists.txt
+3
-3
deps/lz4/CMakeLists.txt
deps/lz4/CMakeLists.txt
+8
-5
src/tsdb/tests/CMakeLists.txt
src/tsdb/tests/CMakeLists.txt
+1
-1
未找到文件。
deps/MQTT-C/CMakeLists.txt
浏览文件 @
45ea0c5d
...
...
@@ -10,11 +10,11 @@ option(MQTT_C_TESTS "Build MQTT-C tests?" OFF)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
# MQTT-C library
add_library
(
mqttc STATIC
ADD_LIBRARY
(
mqttc STATIC
src/mqtt_pal.c
src/mqtt.c
)
target_include_directories
(
mqttc PUBLIC include
)
TARGET_INCLUDE_DIRECTORIES
(
mqttc PUBLIC include
)
target_link_libraries
(
mqttc PUBLIC
$<$<C_COMPILER_ID:MSVS>:ws2_32>
)
...
...
@@ -30,7 +30,7 @@ endif()
# Configure with mbed TLS support
if
(
MQTT_C_MbedTLS_SUPPORT
)
find_package
(
MbedTLS REQUIRED
)
target_include_directories
(
mqttc PUBLIC
${
MBEDTLS_INCLUDE_DIRS
}
)
TARGET_INCLUDE_DIRECTORIES
(
mqttc PUBLIC
${
MBEDTLS_INCLUDE_DIRS
}
)
target_link_libraries
(
mqttc INTERFACE
${
MBEDTLS_LIBRARY
}
)
target_compile_definitions
(
mqttc PUBLIC MQTT_USE_MBEDTLS
)
endif
()
...
...
@@ -70,7 +70,7 @@ if(MQTT_C_TESTS)
add_executable
(
tests tests.c
)
target_link_libraries
(
tests
${
CMOCKA_LIBRARY
}
mqttc
)
target_include_directories
(
tests PRIVATE
${
CMOCKA_INCLUDE_DIR
}
)
TARGET_INCLUDE_DIRECTORIES
(
tests PRIVATE
${
CMOCKA_INCLUDE_DIR
}
)
endif
()
# Install includes and library
...
...
deps/cJson/CMakeLists.txt
浏览文件 @
45ea0c5d
aux_source_directory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src SOURCE_LIST
)
AUX_SOURCE_DIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src SOURCE_LIST
)
add_library
(
cJson
${
SOURCE_LIST
}
)
target_include_directories
(
cJson PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
\ No newline at end of file
ADD_LIBRARY
(
cJson
${
SOURCE_LIST
}
)
TARGET_INCLUDE_DIRECTORIES
(
cJson PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
\ No newline at end of file
deps/lz4/CMakeLists.txt
浏览文件 @
45ea0c5d
aux_source_directory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src SOURCE_LIST
)
AUX_SOURCE_DIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src SOURCE_LIST
)
add_library
(
lz4
${
SOURCE_LIST
}
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
/WX-"
)
SET
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
/WX-"
)
target_include_directories
(
lz4 PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
\ No newline at end of file
IF
(
TD_WINDOWS
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
/WX-"
)
SET
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
/WX-"
)
ENDIF
()
ADD_LIBRARY
(
lz4
${
SOURCE_LIST
}
)
TARGET_INCLUDE_DIRECTORIES
(
lz4 PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc
)
\ No newline at end of file
src/tsdb/tests/CMakeLists.txt
浏览文件 @
45ea0c5d
aux_source_directory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
SOURCE_LIST
)
AUX_SOURCE_DIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
SOURCE_LIST
)
add_executable
(
tsdbTests
${
SOURCE_LIST
}
)
target_link_libraries
(
tsdbTests gtest gtest_main pthread common tsdb tutil trpc
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录