Debian Codegraph @

LspCpp/third_party/ixwebsocket/ws/CMakeLists.txt

raw
1 #
2 # Author: Benjamin Sergeant
3 # Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
4 #
5
6 cmake_minimum_required (VERSION 3.14)
7 project (ws)
8
9 # There's -Weverything too for clang
10 if (NOT WIN32)
11 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
12 endif()
13
14 set (CMAKE_CXX_STANDARD 11)
15
16 option(USE_TLS "Add TLS support" ON)
17
18 include_directories(ws .)
19 include_directories(ws ..)
20 include_directories(ws ../third_party/cpp-linenoise)
21 include_directories(ws ../third_party/cli11)
22 include_directories(ws ../third_party/msgpack11)
23
24 include(FetchContent)
25
26 add_executable(ws
27 ../third_party/msgpack11/msgpack11.cpp
28 ../third_party/cpp-linenoise/linenoise.cpp
29 ws.cpp)
30
31 # library with the most dependencies come first
32 target_link_libraries(ws ixwebsocket)
33
34 target_link_libraries(ws spdlog)
35
36 install(TARGETS ws RUNTIME DESTINATION bin)