Created
May 9, 2018 18:22
-
-
Save vinniefalco/901f7e290f6ebb65d8816ab0b020458c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) | |
# | |
# Distributed under the Boost Software License, Version 1.0. (See accompanying | |
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
# | |
# Official repository: https://github.com/boostorg/beast | |
# | |
cmake_minimum_required (VERSION 3.0.0) | |
set_property (GLOBAL PROPERTY USE_FOLDERS ON) | |
source_group ("" FILES websocket_chat_server.cpp) | |
if (MSVC) | |
set(CMAKE_CXX_STANDARD 17) | |
add_definitions (-D_SCL_SECURE_NO_WARNINGS=1) | |
add_definitions (-D_CRT_SECURE_NO_WARNINGS=1) | |
add_compile_options(/std:c++17) | |
else () | |
add_compile_options(-std=c++17) | |
endif() | |
set(Boost_USE_STATIC_LIBS ON) | |
find_package( Boost REQUIRED COMPONENTS system ) | |
include_directories( ${Boost_INCLUDE_DIRS} ) | |
add_executable (websocket-chat-server | |
websocket_chat_server.cpp | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment