summaryrefslogtreecommitdiff
path: root/Userland/Services/WebSocket/CMakeLists.txt
blob: ccff113db9191fca7387ae68c20b9f345dd78860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
serenity_component(
    WebSocket
    TARGETS WebSocketServer
)

compile_ipc(WebSocketServer.ipc WebSocketServerEndpoint.h)
compile_ipc(WebSocketClient.ipc WebSocketClientEndpoint.h)

set(SOURCES
    ConnectionFromClient.cpp
    main.cpp
    WebSocketClientEndpoint.h
    WebSocketServerEndpoint.h
)

# Note: We use a target name of WebSocketServer here to deconflict with the
#    Lagom namespaced target name for LibWebSocket, Lagom::WebSocket.
#    The server binary name is still WebSocket.
serenity_bin(WebSocketServer)
set_target_properties(WebSocketServer PROPERTIES OUTPUT_NAME WebSocket)
target_link_libraries(WebSocketServer LibCore LibIPC LibWebSocket LibMain)