-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sailfish009
committed
Mar 27, 2020
1 parent
d827c92
commit 448338d
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
project(chat_server) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set(CMAKE_CXX_COMPILER "clang++") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") | ||
set(CMAKE_CXX_FLAGS "-fcoroutines-ts --stdlib=libc++ -Xclang -fconcepts-ts -pthread") | ||
SET(PLATFORM_SPECIFIC_LIBS "-lpthread") | ||
|
||
# find_package(system) | ||
|
||
include_directories(../include) | ||
link_directories(../build/) | ||
|
||
# add_library(project libasio.a) | ||
add_executable(echo_server echo_server.cpp) | ||
target_link_libraries(echo_server libasio.a) | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake compile_commands.json echo_server Makefile | ||
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake compile_commands.json chat_server Makefile | ||
|