diff --git a/source/dnode/mgmt/CMakeLists.txt b/source/dnode/mgmt/CMakeLists.txt index f08a85342a83a38362af3a335c2fbb36f97eee04..efab611452cf4143298df2135b173008af31281d 100644 --- a/source/dnode/mgmt/CMakeLists.txt +++ b/source/dnode/mgmt/CMakeLists.txt @@ -1,2 +1,19 @@ +aux_source_directory(src DNODE_SRC) +aux_source_directory(dnode/src DNODE_SRC) + +add_library(dnode STATIC ${DNODE_SRC}) +target_link_libraries( + dnode cjson mnode vnode qnode snode bnode wal sync taos tfs monitor +) +target_include_directories( + dnode + PUBLIC "${CMAKE_SOURCE_DIR}/include/dnode/mgmt" + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/dnode/inc" +) + add_subdirectory(exec) -add_subdirectory(impl) \ No newline at end of file + +#if(${BUILD_TEST}) +# add_subdirectory(test) +#endif(${BUILD_TEST}) diff --git a/source/dnode/mgmt/impl/inc/dndInt.h b/source/dnode/mgmt/dnode/inc/dndInt.h similarity index 100% rename from source/dnode/mgmt/impl/inc/dndInt.h rename to source/dnode/mgmt/dnode/inc/dndInt.h diff --git a/source/dnode/mgmt/impl/inc/dndEnv.h b/source/dnode/mgmt/dnode/inc/dndMain.h similarity index 100% rename from source/dnode/mgmt/impl/inc/dndEnv.h rename to source/dnode/mgmt/dnode/inc/dndMain.h diff --git a/source/dnode/mgmt/impl/src/dndEnv.c b/source/dnode/mgmt/dnode/src/dndMain.c similarity index 100% rename from source/dnode/mgmt/impl/src/dndEnv.c rename to source/dnode/mgmt/dnode/src/dndMain.c