Сmakelist: cmake_minimum_required(VERSION 3.22) project(CPPWS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -s -O3 -I C:/Users/Shiro/Desktop/asio-1.10.6/include") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} -static") link_libraries(ws2_32 wsock32) set(Boost_INCLUDE_DIR c:/cpp/include/) set(Boost_LIBRARY_DIR c:/cpp/lib/) include_directories(${Boost_INCLUDE_DIR}) set(CMAKE_CXX_STANDARD 14) add_executable(CPPWS main.cpp)
Обсуждают сегодня