feat: c++ pragma 방식 => protocol buffer로 직렬화 수정 및 클라이언트 python gui 앱으로 변경
This commit is contained in:
parent
a88b22b177
commit
cd192d4ec4
14 changed files with 305 additions and 371 deletions
|
|
@ -9,10 +9,17 @@ add_compile_options(-Wall -Wextra -Wpedantic)
|
|||
# Boost 및 의존성 찾기
|
||||
find_package(Boost REQUIRED COMPONENTS system)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
find_package(Protobuf REQUIRED)
|
||||
|
||||
# 컴파일 명령 추출 활성화 (LSP/IDE 용)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# proto 컴파일
|
||||
file(GLOB PROTO_FILES "${CMAKE_CURRENT_SOURCE_DIR}/proto/*.proto")
|
||||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_FILES})
|
||||
|
||||
add_custom_target(generate_proto DEPENDS ${PROTO_SRCS} ${PROTO_HDRS})
|
||||
|
||||
add_executable(Server
|
||||
server/main.cpp
|
||||
server/NetworkService.cpp
|
||||
|
|
@ -20,14 +27,14 @@ add_executable(Server
|
|||
server/PacketHandler.cpp
|
||||
server/SessionManager.cpp
|
||||
server/DatabaseManager.cpp
|
||||
${PROTO_SRCS} ${PROTO_HDRS}
|
||||
)
|
||||
|
||||
target_include_directories(Server PRIVATE include)
|
||||
target_link_libraries(Server PRIVATE Boost::system OpenSSL::SSL OpenSSL::Crypto)
|
||||
|
||||
add_executable(Client
|
||||
client/Client.cpp
|
||||
client/main.cpp
|
||||
target_include_directories(Server PRIVATE include ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_link_libraries(Server PRIVATE
|
||||
Boost::system
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
protobuf::libprotobuf
|
||||
)
|
||||
target_include_directories(Client PRIVATE include)
|
||||
target_link_libraries(Client PRIVATE Boost::system OpenSSL::SSL OpenSSL::Crypto)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue