Added a Boost LEAF library copy.

This commit is contained in:
Alexander Shaduri
2022-02-15 16:22:41 +04:00
parent dbdb0e4686
commit c59fa32efe
3 changed files with 43 additions and 0 deletions
+1
View File
@@ -77,5 +77,6 @@ find_package(Gettext REQUIRED)
add_subdirectory(catch2)
add_subdirectory(leaf)
add_subdirectory(nlohmann_json)
add_subdirectory(whereami)
+20
View File
@@ -0,0 +1,20 @@
###############################################################################
# License: BSD Zero Clause License file
# Copyright:
# (C) 2022 Alexander Shaduri <ashaduri@gmail.com>
###############################################################################
add_library(boost_leaf INTERFACE)
# Relative sources are allowed only since cmake 3.13.
target_sources(boost_leaf INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/standalone/leaf.hpp
${CMAKE_CURRENT_SOURCE_DIR}/convenience/leaf_ns.h
)
target_include_directories(boost_leaf
INTERFACE SYSTEM
"${CMAKE_SOURCE_DIR}/dependencies/leaf/standalone"
"${CMAKE_SOURCE_DIR}/dependencies/leaf/convenience"
)
+22
View File
@@ -0,0 +1,22 @@
/******************************************************************************
License: GNU General Public License v3.0 only
Copyright:
(C) 2022 Alexander Shaduri <ashaduri@gmail.com>
******************************************************************************/
#ifndef APP_LEAF_NS_H
#define APP_LEAF_NS_H
#include "../standalone/leaf.hpp"
/// Use leaf:: instead of boost::leaf for convenience
namespace leaf {
using namespace boost::leaf;
}
#endif
/// @}