fix tests compilation

This commit is contained in:
BlackMATov
2021-01-12 04:15:36 +07:00
parent 03669c949f
commit 383c8a6f95
5 changed files with 13 additions and 0 deletions

View File

@@ -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)

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;