Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)