diff --git a/CMakeLists.txt b/CMakeLists.txt index 34ead91..1905cf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,13 +12,13 @@ enable_testing() add_library(cpptimer INTERFACE) add_executable(demo demo.cpp) -TARGET_LINK_LIBRARIES(demo cpptimer) +TARGET_LINK_LIBRARIES(demo cpptimer pthread) add_executable(demo_runnable demo_runnable.cpp) -TARGET_LINK_LIBRARIES(demo_runnable cpptimer) +TARGET_LINK_LIBRARIES(demo_runnable cpptimer pthread) add_executable(demo_stdfunccallback demo_stdfunccallback.cpp) -TARGET_LINK_LIBRARIES(demo_stdfunccallback cpptimer) +TARGET_LINK_LIBRARIES(demo_stdfunccallback cpptimer pthread) add_subdirectory(test) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 586cb31..08bb97a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,21 +5,21 @@ include_directories( ) add_executable (test_startstop startstop.cpp) -TARGET_LINK_LIBRARIES(test_startstop cpptimer) +TARGET_LINK_LIBRARIES(test_startstop cpptimer pthread) add_test(TestStartStop test_startstop) add_executable (test_twotimers twotimers.cpp) -TARGET_LINK_LIBRARIES(test_twotimers cpptimer) +TARGET_LINK_LIBRARIES(test_twotimers cpptimer pthread) add_test(TestTwotimers test_twotimers) add_executable (test_startstop_ms startstop_ms.cpp) -TARGET_LINK_LIBRARIES(test_startstop_ms cpptimer) +TARGET_LINK_LIBRARIES(test_startstop_ms cpptimer pthread) add_test(TestStartStop_ms test_startstop_ms) add_executable (test_twotimers_ms twotimers_ms.cpp) -TARGET_LINK_LIBRARIES(test_twotimers_ms cpptimer) +TARGET_LINK_LIBRARIES(test_twotimers_ms cpptimer pthread) add_test(TestTwotimers_ms test_twotimers_ms) add_executable (test_oneshot oneshot.cpp) -TARGET_LINK_LIBRARIES(test_oneshot cpptimer) +TARGET_LINK_LIBRARIES(test_oneshot cpptimer pthread) add_test(TestOneShot test_oneshot)