This commit is contained in:
Aaron Kimbrell
2026-02-24 20:35:09 -06:00
parent f1847d1f20
commit 910b92ffc7
24 changed files with 883 additions and 180 deletions

View File

@@ -1,17 +1,12 @@
set(DDASHBOARDSERVER_SOURCES
"DashboardServer.cpp"
"MasterPacketHandler.cpp"
"routes/APIRoutes.cpp"
"routes/StaticRoutes.cpp"
"routes/DashboardRoutes.cpp"
"routes/WSRoutes.cpp"
"routes/AuthRoutes.cpp"
"auth/JWTUtils.cpp"
"auth/DashboardAuthService.cpp"
"auth/AuthMiddleware.cpp"
"auth/RequireAuthMiddleware.cpp"
"handlers/MasterPacketHandler.cpp"
"handlers/DashboardPacketHandler.cpp"
)
add_subdirectory(routes)
add_subdirectory(auth)
add_executable(DashboardServer ${DDASHBOARDSERVER_SOURCES})
target_include_directories(DashboardServer PRIVATE
@@ -29,11 +24,12 @@ target_include_directories(DashboardServer PRIVATE
"${PROJECT_SOURCE_DIR}/dServer"
"${PROJECT_SOURCE_DIR}/thirdparty"
"${PROJECT_SOURCE_DIR}/thirdparty/nlohmann"
"${PROJECT_SOURCE_DIR}/dDashboardServer"
"${PROJECT_SOURCE_DIR}/dDashboardServer/auth"
"${PROJECT_SOURCE_DIR}/dDashboardServer/routes"
)
target_link_libraries(DashboardServer ${COMMON_LIBRARIES} dWeb dServer bcrypt OpenSSL::Crypto)
target_link_libraries(DashboardServer ${COMMON_LIBRARIES} dWeb dServer bcrypt OpenSSL::Crypto DashboardRoutes DashboardAuth)
# Copy static files and templates to build directory (always copy)