Compile flag for check unit tests
This commit is contained in:
parent
cfd0e5ce4c
commit
2a88233e82
|
@ -42,5 +42,6 @@ target_link_libraries(breakhack
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
add_executable(test_util test/check_util src/util)
|
add_executable(test_util test/check_util src/util)
|
||||||
|
target_compile_options(test_util PRIVATE -pthread)
|
||||||
target_link_libraries(test_util -lcheck)
|
target_link_libraries(test_util -lcheck)
|
||||||
add_test(test_util test_util)
|
add_test(test_util test_util)
|
||||||
|
|
|
@ -10,5 +10,6 @@ add_library(linkedlist linkedlist.c)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_executable(test_list check_linkedlist linkedlist)
|
add_executable(test_list check_linkedlist linkedlist)
|
||||||
|
target_compile_options(test_list PRIVATE -pthread)
|
||||||
target_link_libraries(test_list -lcheck)
|
target_link_libraries(test_list -lcheck)
|
||||||
add_test(test_list test_list)
|
add_test(test_list test_list)
|
||||||
|
|
Loading…
Reference in New Issue