mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 13:25:37 +00:00
Added a Boost LEAF library copy.
This commit is contained in:
Vendored
+1
@@ -77,5 +77,6 @@ find_package(Gettext REQUIRED)
|
||||
|
||||
|
||||
add_subdirectory(catch2)
|
||||
add_subdirectory(leaf)
|
||||
add_subdirectory(nlohmann_json)
|
||||
add_subdirectory(whereami)
|
||||
|
||||
Vendored
+20
@@ -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
@@ -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
|
||||
|
||||
/// @}
|
||||
Reference in New Issue
Block a user