cmake_minimum_required(VERSION 3.10)
project(MyServerProject)

set(CMAKE_CXX_STANDARD 17)



# Include the nlohmann/json library
find_package(nlohmann_json REQUIRED)
find_package(msgpack REQUIRED)

include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/plugins)

# Main server executable
add_executable(server
    src/main.cpp
    src/Server.cpp
    src/IPC.cpp
    src/Config.cpp
)

# Link libraries
target_link_libraries(server msgpack nlohmann_json::nlohmann_json)

# Add the plugins subdirectory
add_subdirectory(src/plugins)
