From de2244204678079030224cf2d49d765507b78ef4 Mon Sep 17 00:00:00 2001 From: Sayed Adel Date: Sun, 31 Mar 2019 03:28:33 +0200 Subject: [PATCH] dnn:perf add missing definition __OPENCV_TEST to fix pch --- modules/dnn/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index d97829f81a..2cc085153d 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -98,6 +98,10 @@ ocv_add_perf_tests(${INF_ENGINE_TARGET} FILES Src ${perf_srcs} FILES Include ${perf_hdrs} ) +set_property( + SOURCE "${CMAKE_CURRENT_LIST_DIR}/test/test_common.cpp" + PROPERTY COMPILE_DEFINITIONS "__OPENCV_TESTS=1" +) ocv_option(${the_module}_PERF_CAFFE "Add performance tests of Caffe framework" OFF) ocv_option(${the_module}_PERF_CLCAFFE "Add performance tests of clCaffe framework" OFF) -- GitLab