Skip to content

Commit

Permalink
modify CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
IronsDu committed Mar 12, 2022
1 parent 0175970 commit 1bbc21f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ enable_testing()
include_directories("${PROJECT_SOURCE_DIR}/include/")

add_executable(test_timer test_timer.cpp)
if(WIN32)
target_link_libraries(test_timer ws2_32)
elseif(UNIX)
find_package(Threads REQUIRED)
target_link_libraries(test_timer pthread)
endif()
add_test(TestTimer test_timer)

add_executable(test_wait_group test_wait_group.cpp)
Expand Down

0 comments on commit 1bbc21f

Please sign in to comment.