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)