From b9152a3ae72bc2ff23e661d4d2a86f4498c29522 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Mon, 20 Nov 2017 22:30:07 +0100 Subject: [PATCH] pthreads... --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0197c8..0cc968a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,13 @@ else() message(FATAL_ERROR "GTest not found") endif() +find_package(Threads REQUIRED) +if(Threads_FOUND) + include_directories(${Threads_INCLUDE_DIRS}) +else() + message(FATAL_ERROR "Threads not found") +endif() + include_directories(src) #add_executable(utest src/unit_test.cc)