dragonfly/CMakeLists.txt
Roman Gershman 71a4c6dd45
chore: change Dragonfly to use fb2 helio library. (#1049)
It's a bit more efficient than Boost.Fibers due to better integrations
of Fibers with Proactor loop.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-04-09 16:41:10 +03:00

33 lines
795 B
CMake
Executable File

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}/helio/cmake" ${CMAKE_MODULE_PATH})
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(DF_USE_SSL "Provide support for SSL connections" ON)
find_package(OpenSSL)
include(third_party)
include(internal)
set(USE_FB2 ON CACHE BOOL "")
include_directories(src)
include_directories(helio)
add_subdirectory(helio)
add_subdirectory(src)
include(cmake/Packing.cmake)