add_executable(memcached_topkeys_test topkeys_test.cc)
target_link_libraries(memcached_topkeys_test memcached_daemon gtest gtest_main)
add_sanitizers(memcached_topkeys_test)

add_test(NAME memcached_topkeys_test
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_topkeys_test)

if (NOT WIN32)
  add_executable(memcached_topkeys_benchmark topkeys_benchmark.cc)
  target_link_libraries(memcached_topkeys_benchmark memcached_daemon benchmark)
endif (NOT WIN32)

add_executable(memcached_topkeys_test topkeys_test.cc)
target_link_libraries(memcached_topkeys_test memcached_daemon gtest gtest_main)
add_sanitizers(memcached_topkeys_test)

add_test(NAME memcached_topkeys_test
         WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
         COMMAND memcached_topkeys_test)

if (NOT WIN32)
  add_executable(memcached_topkeys_benchmark topkeys_benchmark.cc)
  target_link_libraries(memcached_topkeys_benchmark memcached_daemon benchmark)
  add_sanitizers(memcached_topkeys_benchmark)
endif (NOT WIN32)

Add "add_sanitizers()" for the topkeys benchmark
Add "add_sanitizers()" for the topkeys benchmark

Change-Id: I4efa59b5709f8b8e5df5c7a850f3bc4e597cc665
Reviewed-on: http://review.couchbase.org/93620
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
