add promise.hpp to unit tests

This commit is contained in:
2019-07-02 01:17:50 +07:00
parent e0f5be0fb3
commit 84ebbe9928
2 changed files with 19 additions and 0 deletions

View File

@@ -64,3 +64,19 @@ if(NOT tencent_rapidjson_POPULATED)
target_include_directories(${PROJECT_NAME}
PRIVATE ${tencent_rapidjson_SOURCE_DIR}/include)
endif()
#
# blackmatov/promise.hpp
#
include(FetchContent)
FetchContent_Declare(
blackmatov_promise_hpp
GIT_REPOSITORY https://github.com/blackmatov/promise.hpp)
FetchContent_GetProperties(blackmatov_promise_hpp)
if(NOT blackmatov_promise_hpp_POPULATED)
FetchContent_Populate(blackmatov_promise_hpp)
target_include_directories(${PROJECT_NAME}
PRIVATE ${blackmatov_promise_hpp_SOURCE_DIR}/headers)
endif()

View File

@@ -16,6 +16,9 @@ namespace json = rapidjson;
#include <curly.hpp/curly.hpp>
namespace net = curly_hpp;
#include <promise.hpp/promise.hpp>
namespace netex = promise_hpp;
#include "png_data.h"
#include "jpeg_data.h"