diff options
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index efa8c299..3c930f16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -224,31 +224,31 @@ add_test( | |||
224 | 224 | ||
225 | function(auto_test target) | 225 | function(auto_test target) |
226 | if(CHECK_FOUND) | 226 | if(CHECK_FOUND) |
227 | add_c_executable(auto_${target} auto_tests/${target}.c) | 227 | add_c_executable(auto_${target}_test auto_tests/${target}_test.c) |
228 | target_link_modules(auto_${target} | 228 | target_link_modules(auto_${target}_test |
229 | toxcore | 229 | toxcore |
230 | toxencryptsave | 230 | toxencryptsave |
231 | ${CHECK_LIBRARIES}) | 231 | ${CHECK_LIBRARIES}) |
232 | if(BUILD_TOXAV) | 232 | if(BUILD_TOXAV) |
233 | target_link_modules(auto_${target} toxav) | 233 | target_link_modules(auto_${target}_test toxav) |
234 | endif() | 234 | endif() |
235 | add_test(NAME ${target} COMMAND auto_${target}) | 235 | add_test(NAME ${target} COMMAND auto_${target}_test) |
236 | endif() | 236 | endif() |
237 | endfunction() | 237 | endfunction() |
238 | 238 | ||
239 | auto_test(TCP_test) | 239 | auto_test(TCP) |
240 | auto_test(assoc_test) | 240 | auto_test(assoc) |
241 | auto_test(crypto_test) | 241 | auto_test(crypto) |
242 | auto_test(dht_test) | 242 | auto_test(dht) |
243 | auto_test(encryptsave_test) | 243 | auto_test(encryptsave) |
244 | auto_test(messenger_test) | 244 | auto_test(messenger) |
245 | auto_test(network_test) | 245 | auto_test(network) |
246 | auto_test(onion_test) | 246 | auto_test(onion) |
247 | auto_test(skeleton_test) | 247 | auto_test(skeleton) |
248 | auto_test(tox_test) | 248 | auto_test(tox) |
249 | if(BUILD_TOXAV) | 249 | if(BUILD_TOXAV) |
250 | auto_test(toxav_basic_test) | 250 | auto_test(toxav_basic) |
251 | auto_test(toxav_many_test) | 251 | auto_test(toxav_many) |
252 | endif() | 252 | endif() |
253 | 253 | ||
254 | 254 | ||