1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

Add async library to the project

This commit is contained in:
Roman Gershman 2021-11-16 09:59:13 +02:00
parent 503aa8af52
commit 90516b53dd
4 changed files with 42 additions and 0 deletions

12
.gitignore vendored Normal file
View file

@ -0,0 +1,12 @@
build/*
build-*
.vscode/*.db
.vscode/settings.json
third_party
genfiles/*
*.sublime-*
.tags
!third_party/include/*
*.pyc
/CMakeLists.txt.user
_deps

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "async"]
path = async
url = https://github.com/romange/async.git

26
CMakeLists.txt Executable file
View file

@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
set(PROJECT_CONTACT romange@gmail.com)
enable_testing()
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
# Set targets in folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project(DRAGONFLY C CXX)
set(CMAKE_CXX_STANDARD 17)
# We must define all the required variables from the root cmakefile, otherwise
# they just disappear.
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/async/cmake" ${CMAKE_MODULE_PATH})
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
include(third_party)
include(internal)
Message(STATUS "THIRD_PARTY_LIB_DIR ${THIRD_PARTY_LIB_DIR}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(async)
add_subdirectory(async)

1
async Submodule

@ -0,0 +1 @@
Subproject commit 39be1827d923881c662a684a215cb2dbba08d230