Files
yourchat/CMakeLists.txt
Torsten Schulz (local) 864d86aa09 Refactor chat system: Introduce ChatRoom and ChatUser classes
- Created ChatRoom class to manage chat room functionalities, including user management, message handling, and game mechanics.
- Developed ChatUser class to represent individual users, handling user-specific actions and interactions within chat rooms.
- Implemented a Config class for loading configuration settings from a JSON file.
- Established a Server class to manage connections, handle requests, and facilitate communication between users and chat rooms.
- Introduced a Database class for database interactions, utilizing PostgreSQL for user and room data management.
- Added utility functions in the Base class for JSON handling and socket communication.
- Created Object classes for Room and User to encapsulate their properties and behaviors.
- Updated main function to initialize server and load chat rooms from configuration.
2025-08-11 16:07:15 +02:00

21 lines
478 B
CMake

cmake_minimum_required(VERSION 3.10)
project(YourChat VERSION 0.1)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include_directories(${PROJECT_SOURCE_DIR}/src)
add_executable(yourchat
src/main.cpp
src/lib/base.cpp
src/core/config.cpp
src/core/server.cpp
src/core/chat_room.cpp
src/lib/tools.cpp
src/core/chat_user.cpp
src/lib/database.cpp
src/object/user.cpp
src/object/room.cpp
)
target_link_libraries(yourchat jsoncpp pthread pqxx)