From 46f33fcbd23fdc6237fa891a193cd74469a7a858 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 23 Sep 2021 09:37:01 +0800 Subject: [PATCH] refact --- CMakeLists.txt | 4 ++++ source/client/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9324daef20..06b50d4f95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ execute_process(COMMAND "${CMAKE_COMMAND}" --build . # deps add_subdirectory(deps) +# api +aux_source_directory(include/client API_SRC) +add_library(api INTERFACE ${API_SRC}) + # src add_subdirectory(source) diff --git a/source/client/CMakeLists.txt b/source/client/CMakeLists.txt index 26623d3cdc..2313c1633c 100644 --- a/source/client/CMakeLists.txt +++ b/source/client/CMakeLists.txt @@ -2,6 +2,9 @@ aux_source_directory(src CLIENT_SRC) add_library(taos ${CLIENT_SRC}) target_include_directories( taos - PUBLIC "${CMAKE_SOURCE_DIR}/include/client" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" +) +target_link_libraries( + taos + INTERFACE api ) \ No newline at end of file -- GitLab