Fixed the CMake tests now that util is used

This commit is contained in:
Linus Probert 2018-01-23 23:07:51 +01:00
parent 8d865e9d94
commit 147496ba7a
1 changed files with 2 additions and 2 deletions

View File

@ -82,11 +82,11 @@ IF (CHECK_FOUND AND NOT WIN32)
target_link_libraries(test_util ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_test(test_util test_util)
add_executable(test_linkedlist test/check_linkedlist src/linkedlist)
add_executable(test_linkedlist test/check_linkedlist src/linkedlist src/linkedlist)
target_link_libraries(test_linkedlist ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_test(test_linkedlist test_linkedlist)
add_executable(test_hashtable test/check_hashtable src/hashtable)
add_executable(test_hashtable test/check_hashtable src/hashtable src/linkedlist)
target_link_libraries(test_hashtable ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_test(test_hashtable test_hashtable)
ENDIF (CHECK_FOUND AND NOT WIN32)