Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -----------------------------------------------------------------------------
# .clang-format (Google Style with Comments)
# 官方文档: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# -----------------------------------------------------------------------------
Language: Cpp
BasedOnStyle: Google
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
[submodule "third_party/jwt-cpp"]
path = third_party/jwt-cpp
url = https://github.com/Thalhammer/jwt-cpp.git
[submodule "third_party/websocketpp"]
path = third_party/websocketpp
url = https://github.com/zaphoyd/websocketpp.git
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0")

# 查找并链接线程库
find_package(Threads REQUIRED)
# 查找并链接SQLite3数据库库
find_package(SQLite3 REQUIRED)
# 查找并链接MySQL数据库库
find_package(PkgConfig REQUIRED)
pkg_check_modules(MYSQL REQUIRED mysqlclient)
# 查找并链接OpenSSL库(用于JWT签名)
find_package(OpenSSL REQUIRED)

Expand All @@ -32,7 +33,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/third_party/websocketpp # websocketpp头文件目录
${CMAKE_SOURCE_DIR}/third_party/nlohmann/single_include # nlohmann/json头文件目录
${CMAKE_SOURCE_DIR}/third_party/Bcrypt/include # Bcrypt头文件目录
${SQLite3_INCLUDE_DIRS} # SQLite3头文件目录
${MYSQL_INCLUDE_DIRS} # MySQL头文件目录
${OPENSSL_INCLUDE_DIR} # OpenSSL头文件目录
)

Expand Down
333 changes: 0 additions & 333 deletions docs/database.md

This file was deleted.

Loading
Loading