mirror of
https://github.com/BlackMATov/promise.hpp.git
synced 2025-12-13 19:57:58 +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_include_directories(${PROJECT_NAME} INTERFACE headers)
|
||||||
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17)
|
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)
|
if(BUILD_AS_STANDALONE)
|
||||||
option(BUILD_WITH_UNTESTS "Build with unit tests" ON)
|
option(BUILD_WITH_UNTESTS "Build with unit tests" ON)
|
||||||
if(BUILD_WITH_UNTESTS)
|
if(BUILD_WITH_UNTESTS)
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include "promise.hpp"
|
#include "promise.hpp"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace jobber_hpp
|
namespace jobber_hpp
|
||||||
{
|
{
|
||||||
using namespace promise_hpp;
|
using namespace promise_hpp;
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include "promise.hpp"
|
#include "promise.hpp"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace scheduler_hpp
|
namespace scheduler_hpp
|
||||||
{
|
{
|
||||||
using namespace promise_hpp;
|
using namespace promise_hpp;
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
namespace jb = jobber_hpp;
|
namespace jb = jobber_hpp;
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
namespace sd = scheduler_hpp;
|
namespace sd = scheduler_hpp;
|
||||||
|
|||||||
Reference in New Issue
Block a user