2021-11-16 15:59:13 +08:00
|
|
|
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.
|
2021-11-18 23:14:05 +08:00
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/helio/cmake" ${CMAKE_MODULE_PATH})
|
2021-11-16 15:59:13 +08:00
|
|
|
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
2022-06-16 00:19:59 +08:00
|
|
|
option(DF_USE_SSL "Provide support for SSL connections" ON)
|
2021-11-16 15:59:13 +08:00
|
|
|
|
|
|
|
include(third_party)
|
2022-05-30 13:49:16 +08:00
|
|
|
include(internal)
|
2021-11-16 15:59:13 +08:00
|
|
|
|
2022-02-25 16:03:42 +08:00
|
|
|
include_directories(src)
|
2021-11-18 23:14:05 +08:00
|
|
|
include_directories(helio)
|
2021-11-16 15:59:13 +08:00
|
|
|
|
2021-11-18 23:14:05 +08:00
|
|
|
add_subdirectory(helio)
|
2022-02-25 16:03:42 +08:00
|
|
|
add_subdirectory(src)
|