From 3049445d7811248c3b2d42db0f4f4034e2995756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Mon, 30 Oct 2017 12:25:57 +0100 Subject: [PATCH] Remove benchmark binary from main cmake list We can give it a separate CMakeLists.txt later, but there is no point in building it every time. --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bda4b293..4d5bc600 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,17 +276,9 @@ set(HEADERS ${REPORTER_HEADERS} ) - -set(BENCH_SOURCES - ${BENCHMARK_DIR}/BenchMain.cpp - ${BENCHMARK_DIR}/StringificationBench.cpp - ) -CheckFileList(BENCH_SOURCES ${BENCHMARK_DIR}) - # Provide some groupings for IDEs SOURCE_GROUP("Tests" FILES ${TEST_SOURCES}) SOURCE_GROUP("Surrogates" FILES ${SURROGATE_SOURCES}) -SOURCE_GROUP("Benchmarks" FILES ${BENCH_SOURCES}) # configure the executable include_directories(${HEADER_DIR}) @@ -297,12 +289,10 @@ add_definitions( -DCATCH_CONFIG_FULL_PROJECT ) # without building all of our selftests. if (NOT NO_SELFTEST) add_executable(SelfTest ${TEST_SOURCES} ${IMPL_SOURCES} ${REPORTER_SOURCES} ${SURROGATE_SOURCES} ${HEADERS}) - add_executable(Benchmark ${BENCH_SOURCES} ${IMPL_SOURCES} ${REPORTER_SOURCES} ${HEADERS}) # Add desired warnings if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" ) target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code ) - target_compile_options( Benchmark PRIVATE -Wall -Wextra -Wunreachable-code ) endif() # Clang specific warning go here if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) @@ -311,7 +301,6 @@ if (NOT NO_SELFTEST) endif() if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" ) target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX /w44061 /w44062 ) - target_compile_options( Benchmark PRIVATE /W4 ) endif()