aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@chromium.org>2017-01-09 16:35:26 -0800
committerVitaly Buka <vitalybuka@google.com>2017-01-11 23:27:30 +0000
commitb4cc41b15c3399c8df82d7c07cab76060859315c (patch)
tree9925e0a7d8b1aba7543f08abf7679dd481be9946 /cmake
parentb93a14687c910149556a223456fa566f5f84d87e (diff)
downloadlibprotobuf-mutator-b4cc41b15c3399c8df82d7c07cab76060859315c.tar.gz
Add libfuzzer_example_test
Change-Id: I3240ad0042a7010492e451bcb5411427fbc237d6 Reviewed-on: https://team-review.git.corp.google.com/58378 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 29b5dfd..821276d 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -63,6 +63,7 @@ target_link_libraries(libfuzzer_example
enable_testing()
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ../protobuf_mutator.proto)
add_executable(protobuf_mutator_test
+ ../libfuzzer_example_test.cc
../protobuf_mutator_test.cc
../weighted_reservoir_sampler_test.cc
${PROTO_SRCS})
@@ -72,6 +73,7 @@ target_link_libraries(protobuf_mutator_test
${PROTOBUF_LIBRARY}
${GTEST_BOTH_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
+add_dependencies(protobuf_mutator_test libfuzzer_example)
ProcessorCount(CPU_COUNT)
math(EXPR TEST_SHARDS_COUNT 2*${CPU_COUNT})