Compile flag for check unit tests

This commit is contained in:
Linus Probert 2017-12-05 13:40:52 +01:00
parent cfd0e5ce4c
commit 2a88233e82
2 changed files with 2 additions and 0 deletions

View File

@ -42,5 +42,6 @@ target_link_libraries(breakhack
enable_testing()
add_executable(test_util test/check_util src/util)
target_compile_options(test_util PRIVATE -pthread)
target_link_libraries(test_util -lcheck)
add_test(test_util test_util)

View File

@ -10,5 +10,6 @@ add_library(linkedlist linkedlist.c)
enable_testing()
add_executable(test_list check_linkedlist linkedlist)
target_compile_options(test_list PRIVATE -pthread)
target_link_libraries(test_list -lcheck)
add_test(test_list test_list)