aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@chromium.org>2016-12-03 18:57:32 -0800
committerVitaly Buka <vitalybuka@chromium.org>2016-12-05 15:32:26 -0800
commit4af611d72cff36161ab46498904740b4324ceaf9 (patch)
tree231cb2c20685774b2f55dd165cf893ebe7d80de5 /cmake
parent781853c9a32679eff18db3d5de5030b5e4dd06d0 (diff)
downloadlibprotobuf-mutator-4af611d72cff36161ab46498904740b4324ceaf9.tar.gz
Refactoring
Change-Id: I3b7c6573aa0f55611d121504e4c50c23c012ea7c
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 46817ae..753cc05 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -25,7 +25,6 @@ include(zlib)
find_package (Threads)
-#set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-exceptions")
@@ -34,10 +33,12 @@ target_link_libraries(protobuf-mutator
${PROTOBUF_LIBRARY})
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ../protobuf_mutator.proto)
-#message (--3333- ${PROTO_SRCS})
enable_testing()
-add_executable(protobuf_mutator_test ../protobuf_mutator_test.cc ${PROTO_SRCS} ${PROTO_HDRS})
+add_executable(protobuf_mutator_test
+ ../protobuf_mutator_test.cc
+ ../weighted_reservoir_sampler_test.cc
+ ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(protobuf_mutator_test
protobuf-mutator
${ZLIB_LIBRARIES}
@@ -45,7 +46,6 @@ target_link_libraries(protobuf_mutator_test
${GTEST_BOTH_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
-#GTEST_ADD_TESTS(protobuf_mutator_test --gtest_color=yes AUTO)
add_test(test.protobuf_mutator_test protobuf_mutator_test --gtest_color=yes AUTO)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose
DEPENDS protobuf_mutator_test)