add_executable(scarchat-server
    main.cpp
    server.cpp
    server.h
    session.cpp
    session.h
    auth/authenticator.cpp
    auth/authenticator.h
    database/database.cpp
    database/database.h
    config/server_config.cpp
    config/server_config.h
)

target_include_directories(scarchat-server PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries(scarchat-server PRIVATE
    scarchat_shared
    Boost::system
    Boost::thread
    OpenSSL::SSL
    OpenSSL::Crypto
    SQLite::SQLite3
)

# Install
install(TARGETS scarchat-server
    RUNTIME DESTINATION bin
)
