Skip to content

Commit

Permalink
move common dir to src
Browse files Browse the repository at this point in the history
  • Loading branch information
hnwyllmm committed Nov 19, 2024
1 parent 297b1f5 commit 4f79f4f
Show file tree
Hide file tree
Showing 289 changed files with 626 additions and 2,162 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ MESSAGE(STATUS "CMAKE_CXX_FLAGS is " ${CMAKE_CXX_FLAGS})

# ADD_SUBDIRECTORY(src bin) bin 为目标目录, 可以省略
ADD_SUBDIRECTORY(deps)
ADD_SUBDIRECTORY(src/obclient)
ADD_SUBDIRECTORY(src/observer)
ADD_SUBDIRECTORY(test/perf)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tools)

IF (WITH_BENCHMARK)
Expand Down
2 changes: 1 addition & 1 deletion benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
find_package(benchmark CONFIG REQUIRED)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/observer)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/observer)

FILE(GLOB_RECURSE ALL_SRC *.cpp)
# AUX_SOURCE_DIRECTORY 类似功能
Expand Down
1 change: 0 additions & 1 deletion deps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

ADD_SUBDIRECTORY(common)
if (WITH_MEMTRACER)
ADD_SUBDIRECTORY(memtracer)
endif()
38 changes: 0 additions & 38 deletions deps/common/CMakeLists.txt

This file was deleted.

42 changes: 0 additions & 42 deletions deps/common/metrics/console_reporter.cpp

This file was deleted.

30 changes: 0 additions & 30 deletions deps/common/metrics/console_reporter.h

This file was deleted.

122 changes: 0 additions & 122 deletions deps/common/metrics/histogram_snapshot.cpp

This file was deleted.

76 changes: 0 additions & 76 deletions deps/common/metrics/histogram_snapshot.h

This file was deleted.

42 changes: 0 additions & 42 deletions deps/common/metrics/log_reporter.cpp

This file was deleted.

Loading

0 comments on commit 4f79f4f

Please sign in to comment.