Skip to content
Permalink
Browse files

[C++] Fixed CMakeLists.txt of websocket-echo-client/server

  • Loading branch information
Guido Ostkamp guidoostkampdebertrandtcom
Guido Ostkamp authored and guidoostkampdebertrandtcom committed Mar 11, 2020
1 parent f1f3604 commit 75aa73cb26c863f92a97f687ab200ecb3685c7a2
@@ -12,7 +12,6 @@ message(STATUS "option USE_PLATFORM_WEBSOCKETPP=" ${USE_PLATFORM_WEBSOCKETPP})
### Add websocketpp ###########################################################

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../cpp/CMake")
#include(AddWebSocketPP)
if(NOT TARGET websocketpp::websocketpp)
find_package(websocketpp REQUIRED)
endif()
@@ -26,7 +25,7 @@ find_package (Threads)
add_executable(websocket-client-echo
WebSocketClientEcho.cpp
)
add_dependencies(websocket-client-echo websocketpp)
add_dependencies(websocket-client-echo websocketpp::websocketpp)

target_include_directories(
websocket-client-echo
@@ -10,7 +10,6 @@ message(STATUS "option USE_PLATFORM_WEBSOCKETPP=" ${USE_PLATFORM_WEBSOCKETPP})
### Add websocketpp ###########################################################

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../cpp/CMake")
#include(AddWebSocketPP)
if(NOT TARGET websocketpp::websocketpp)
find_package(websocketpp REQUIRED)
endif()
@@ -22,7 +21,7 @@ find_package(Boost REQUIRED COMPONENTS system thread program_options)
add_executable(websocket-server-echo
WebSocketServerEcho.cpp
)
add_dependencies(websocket-server-echo websocketpp)
add_dependencies(websocket-server-echo websocketpp::websocketpp)

target_include_directories(
websocket-server-echo

0 comments on commit 75aa73c

Please sign in to comment.
You can’t perform that action at this time.