72bee1c037e964ff50c51ec081b9eee7fac9b0ed
[awesomized/libmemcached] / tests / libmemcached-1.0 / CMakeLists.txt
1
2 add_executable(internals internals.cc string.cc)
3 target_link_libraries(internals PRIVATE libtest libmemcachedinternal Threads::Threads)
4 target_include_directories(internals PRIVATE ../..)
5 add_test(internals internals)
6
7 add_executable(sasl
8 basic.cc
9 debug.cc
10 deprecated.cc
11 error_conditions.cc
12 ketama.cc
13 namespace.cc
14 parser.cc
15 pool.cc
16 print.cc
17 replication.cc
18 sasl.cc
19 virtual_buckets.cc
20 callback_counter.cc
21 fetch_all_results.cc
22 generate.cc
23 )
24 target_link_libraries(sasl PRIVATE
25 libclient_utilities
26 libhashkit
27 libmemcached
28 libmemcachedutil
29 libtest
30 Threads::Threads
31 )
32 target_include_directories(sasl PRIVATE ../..)
33 add_test(sasl sasl)
34
35 add_executable(atomsmasher atomsmasher.cc)
36 add_executable(testplus plus.cpp)
37
38 foreach(TEST IN ITEMS atomsmasher testplus)
39 target_sources(${TEST} PRIVATE
40 callback_counter.cc
41 debug.cc
42 fetch_all_results.cc
43 generate.cc
44 print.cc
45 )
46 target_link_libraries(${TEST} PRIVATE
47 libclient_utilities
48 libhashkit
49 libmemcached
50 libmemcachedutil
51 libtest
52 )
53 target_include_directories(${TEST} PRIVATE ../..)
54 add_test(${TEST} ${TEST})
55 endforeach()
56
57
58 find_library(LIBUUID uuid REQUIRED)
59
60 add_executable(testapp all_tests.cc)
61 add_executable(testsocket all_tests_socket.cc)
62
63 foreach(TEST IN ITEMS testapp testsocket)
64 target_sources(${TEST} PRIVATE
65 basic.cc
66 callback_counter.cc
67 callbacks.cc
68 debug.cc
69 deprecated.cc
70 dump.cc
71 encoding_key.cc
72 error_conditions.cc
73 exist.cc
74 fetch_all_results.cc
75 generate.cc
76 haldenbrand.cc
77 ketama.cc
78 mem_functions.cc
79 memcached_get.cc
80 namespace.cc
81 parser.cc
82 pool.cc
83 print.cc
84 replication.cc
85 server_add.cc
86 setup_and_teardowns.cc
87 stat.cc
88 touch.cc
89 virtual_buckets.cc
90 )
91 target_link_libraries(${TEST} PRIVATE
92 libclient_utilities
93 libhashkit
94 libmemcached
95 libmemcachedutil
96 libtest
97 Threads::Threads
98 ${LIBUUID}
99 )
100 target_include_directories(${TEST} PRIVATE ../..)
101 add_test(${TEST} ${TEST})
102 endforeach()