diff --git a/src/mnode/CMakeLists.txt b/src/mnode/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..df4123d3c70a76e4d9dc318bfd17ed8790b5121d --- /dev/null +++ b/src/mnode/CMakeLists.txt @@ -0,0 +1,6 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.8) +PROJECT(TDengine) + +ADD_SUBDIRECTORY(sdb) +ADD_SUBDIRECTORY(detail) +ADD_SUBDIRECTORY(lite) \ No newline at end of file diff --git a/src/mnode/detail/CMakeLists.txt b/src/mnode/detail/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ddfc02b8b5f5cb135b9edb839ca760aabfb615e --- /dev/null +++ b/src/mnode/detail/CMakeLists.txt @@ -0,0 +1,19 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.8) +PROJECT(TDengine) + +IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM)) + INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc) + INCLUDE_DIRECTORIES(${TD_OS_DIR}/inc) + INCLUDE_DIRECTORIES(inc) + AUX_SOURCE_DIRECTORY(src SRC) + ADD_LIBRARY(mnode ${SRC}) + TARGET_LINK_LIBRARIES(mnode trpc tutil sdb pthread) + + IF (TD_CLUSTER) + TARGET_LINK_LIBRARIES(mnode mcluster) + ELSEIF (TD_LITE) + TARGET_LINK_LIBRARIES(mnode mlite) + ENDIF () +ENDIF () + + diff --git a/src/mnode/lite/CMakeLists.txt b/src/mnode/lite/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/mnode/sdb/CMakeLists.txt b/src/mnode/sdb/CMakeLists.txt index 6b29eefde6c4792f691fae9f0d5c370751460c93..d77ef84ced7ab1a613ea688ee78d9703c85b6c6a 100644 --- a/src/mnode/sdb/CMakeLists.txt +++ b/src/mnode/sdb/CMakeLists.txt @@ -9,7 +9,4 @@ IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM)) AUX_SOURCE_DIRECTORY(src SRC) ADD_LIBRARY(sdb ${SRC}) TARGET_LINK_LIBRARIES(sdb trpc) - IF (TD_CLUSTER) - TARGET_LINK_LIBRARIES(sdb sdb_cluster) - ENDIF () ENDIF ()