added core tests to cmake

This commit is contained in:
Markus Makela
2014-09-11 20:08:28 +03:00
parent 19ca28d8bd
commit 7a069ecdf7
3 changed files with 33 additions and 4 deletions

View File

@ -0,0 +1,12 @@
add_executable(test_hash testhash.c)
add_executable(test_spinlock testspinlock.c)
add_executable(test_filter testfilter.c)
add_executable(test_adminusers testadminusers.c)
target_link_libraries(test_hash crypto ssl pthread log_manager fullcore)
target_link_libraries(test_spinlock crypto ssl pthread log_manager fullcore)
target_link_libraries(test_filter crypto ssl pthread log_manager fullcore)
target_link_libraries(test_adminusers crypto crypt mysqld ssl fullcore)
add_test(TestHash test_hash)
add_test(TestSpinlock test_spinlock)
add_test(TestFilter test_filter)
add_test(TestAdminUsers test_adminusers)