Merge pull request #14217 from alalek:fix_world_gapi_tests

This commit is contained in:
Alexander Alekhin 2019-04-02 16:27:12 +00:00
commit 14843679af
27 changed files with 31 additions and 30 deletions

View File

@ -1148,7 +1148,7 @@ function(ocv_add_perf_tests)
source_group("Src" FILES "${${the_target}_pch}")
ocv_add_executable(${the_target} ${OPENCV_PERF_${the_module}_SOURCES} ${${the_target}_pch})
ocv_target_include_modules(${the_target} ${perf_deps} "${perf_path}")
ocv_target_include_modules(${the_target} ${perf_deps})
ocv_target_link_libraries(${the_target} LINK_PRIVATE ${perf_deps} ${OPENCV_MODULE_${the_module}_DEPS} ${OPENCV_LINKER_LIBS} ${OPENCV_PERF_${the_module}_DEPS})
add_dependencies(opencv_perf_tests ${the_target})
@ -1239,7 +1239,7 @@ function(ocv_add_accuracy_tests)
source_group("Src" FILES "${${the_target}_pch}")
ocv_add_executable(${the_target} ${OPENCV_TEST_${the_module}_SOURCES} ${${the_target}_pch})
ocv_target_include_modules(${the_target} ${test_deps} "${test_path}")
ocv_target_include_modules(${the_target} ${test_deps})
if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/test")
ocv_target_include_directories(${the_target} "${CMAKE_CURRENT_BINARY_DIR}/test")
endif()

View File

@ -261,6 +261,7 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _input)
)
_PCH_GET_COMPILE_FLAGS(_compile_FLAGS)
list(APPEND _compile_FLAGS "${_PCH_include_prefix}\"${_path}\"")
get_target_property(type ${_targetName} TYPE)
if(type STREQUAL "SHARED_LIBRARY")

View File

@ -5,5 +5,5 @@
// Copyright (C) 2018 Intel Corporation
#include "perf_precomp.hpp"
#include "../perf_precomp.hpp"
#include "gapi_core_perf_tests_inl.hpp"

View File

@ -5,5 +5,5 @@
// Copyright (C) 2018 Intel Corporation
#include "perf_precomp.hpp"
#include "../perf_precomp.hpp"
#include "gapi_imgproc_perf_tests_inl.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "perf_precomp.hpp"
#include "../perf_precomp.hpp"
#include "../../test/common/gapi_tests_common.hpp"
namespace opencv_test

View File

@ -7,7 +7,7 @@
// FIXME: move out from Common
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/cpu/core.hpp"
#include <ade/util/algorithm.hpp>

View File

@ -5,5 +5,5 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "gapi_core_tests_inl.hpp"

View File

@ -5,5 +5,5 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "gapi_imgproc_tests_inl.hpp"

View File

@ -5,5 +5,5 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "gapi_operators_tests_inl.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "../common/gapi_operators_tests.hpp"
#define CORE_FLUID cv::gapi::core::fluid::kernels()

View File

@ -5,8 +5,8 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "gapi_mock_kernels.hpp"
#include "../test_precomp.hpp"
#include "../gapi_mock_kernels.hpp"
#include "compiler/gmodel.hpp"
#include "compiler/gcompiler.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
namespace opencv_test
{

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
namespace opencv_test {
// Tests on T/Kind matching ////////////////////////////////////////////////////

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "api/gcomputation_priv.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include <ade/util/zip_range.hpp> // util::indexed

View File

@ -5,10 +5,10 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "compiler/transactions.hpp"
#include "gapi_mock_kernels.hpp"
#include "../gapi_mock_kernels.hpp"
#include "compiler/gmodel.hpp"
#include "compiler/gislandmodel.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "compiler/gmodel.hpp"
#include "compiler/gcompiled_priv.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "api/gcomputation_priv.hpp"
#include "opencv2/gapi/fluid/gfluidkernel.hpp"

View File

@ -5,9 +5,9 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "gapi_mock_kernels.hpp"
#include "../gapi_mock_kernels.hpp"
namespace opencv_test
{

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
namespace opencv_test
{

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include <ade/graph.hpp>
#include "compiler/transactions.hpp"

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/own/types.hpp"
namespace opencv_test

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/own/mat.hpp"
#include <opencv2/gapi/util/compiler_hints.hpp> //suppress_unused_warning

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/own/scalar.hpp"
namespace opencv_test

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/util/any.hpp"
namespace opencv_test

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/util/optional.hpp"
#include <opencv2/gapi/util/compiler_hints.hpp> //suppress_unused_warning

View File

@ -5,7 +5,7 @@
// Copyright (C) 2018 Intel Corporation
#include "test_precomp.hpp"
#include "../test_precomp.hpp"
#include "opencv2/gapi/util/variant.hpp"
#include <cstddef> //std::max_align_t