mirror of
https://github.com/BlackMATov/promise.hpp.git
synced 2025-12-13 03:46:29 +07:00
fix tests compilation
This commit is contained in:
@@ -11,6 +11,9 @@ add_library(${PROJECT_NAME} INTERFACE)
|
||||
target_include_directories(${PROJECT_NAME} INTERFACE headers)
|
||||
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17)
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} INTERFACE Threads::Threads)
|
||||
|
||||
if(BUILD_AS_STANDALONE)
|
||||
option(BUILD_WITH_UNTESTS "Build with unit tests" ON)
|
||||
if(BUILD_WITH_UNTESTS)
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "promise.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace jobber_hpp
|
||||
{
|
||||
using namespace promise_hpp;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "promise.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace scheduler_hpp
|
||||
{
|
||||
using namespace promise_hpp;
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
#include <thread>
|
||||
#include <numeric>
|
||||
#include <iostream>
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
namespace jb = jobber_hpp;
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
#include <thread>
|
||||
#include <numeric>
|
||||
#include <iostream>
|
||||
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
namespace sd = scheduler_hpp;
|
||||
|
||||
Reference in New Issue
Block a user