From 62850d1ead20198e9466dfafe7d08bef1004a712 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Sat, 11 Feb 2017 11:11:08 -0700 Subject: [PATCH] Add asio as a submodule --- .gitmodules | 3 +++ externals/CMakeLists.txt | 3 +++ externals/asio | 1 + 3 files changed, 7 insertions(+) create mode 160000 externals/asio diff --git a/.gitmodules b/.gitmodules index f98725622..bf2c6c50f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "cryptopp"] path = externals/cryptopp/cryptopp url = https://github.com/weidai11/cryptopp.git +[submodule "asio"] + path = externals/asio + url = https://github.com/chriskohlhoff/asio/ diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 309e98464..f474642c7 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -9,3 +9,6 @@ endif() add_subdirectory(cryptopp) +add_library(asio INTERFACE) +target_include_directories(asio INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/asio/asio/include) +target_compile_definitions(asio INTERFACE -DASIO_STANDALONE=1) diff --git a/externals/asio b/externals/asio new file mode 160000 index 000000000..d28ec5475 --- /dev/null +++ b/externals/asio @@ -0,0 +1 @@ +Subproject commit d28ec54750406dcfe65ecec8d39c8e536b53d172