Move in-tree dependencies to their own folder

src/ should only contain our code. Move the in-tree dependencies to dep/
This allows us (if necessary) to e.g. exclude that part of the tree from being analyzed by
various tools or mark it as external code in IDEs.
This commit is contained in:
Peter Keresztes Schmidt 2021-02-27 20:32:37 +01:00
parent 866bcc9518
commit c33b5a4393
45 changed files with 2337 additions and 2337 deletions

View File

@ -833,6 +833,7 @@ configure_file(zmlinkcontent.sh.in "${CMAKE_CURRENT_BINARY_DIR}/zmlinkcontent.sh
include(Pod2Man) include(Pod2Man)
# Process subdirectories # Process subdirectories
add_subdirectory(dep)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(scripts) add_subdirectory(scripts)
add_subdirectory(db) add_subdirectory(db)

2
dep/CMakeLists.txt Normal file
View File

@ -0,0 +1,2 @@
add_subdirectory(jwt-cpp)
add_subdirectory(libbcrypt)

View File

@ -70,9 +70,6 @@ set(ZM_BIN_SRC_FILES
zm_zone.cpp zm_zone.cpp
zm_storage.cpp) zm_storage.cpp)
add_subdirectory(jwt-cpp)
add_subdirectory(libbcrypt)
# A fix for cmake recompiling the source files for every target. # A fix for cmake recompiling the source files for every target.
add_library(zm STATIC ${ZM_BIN_SRC_FILES}) add_library(zm STATIC ${ZM_BIN_SRC_FILES})