feat(backend): add sqlite migrations + app state + tests
这个提交包含在:
@@ -9,13 +9,17 @@ find_package(Catch2 3 REQUIRED)
|
||||
|
||||
add_library(csp_core
|
||||
src/version.cc
|
||||
src/db/sqlite_db.cc
|
||||
src/app_state.cc
|
||||
)
|
||||
|
||||
target_include_directories(csp_core PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
# SQLite will be used via Drogon DB client in later iterations.
|
||||
target_link_libraries(csp_core PUBLIC
|
||||
SQLite3_lib
|
||||
)
|
||||
|
||||
add_executable(csp_server
|
||||
src/main.cc
|
||||
@@ -35,6 +39,7 @@ enable_testing()
|
||||
add_executable(csp_tests
|
||||
tests/test_main.cc
|
||||
tests/version_test.cc
|
||||
tests/sqlite_db_test.cc
|
||||
)
|
||||
|
||||
target_link_libraries(csp_tests PRIVATE
|
||||
|
||||
在新工单中引用
屏蔽一个用户