removed perf_gpu_cpu from CMake scripts
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 20 Aug 2012 05:58:37 +0000 (09:58 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 20 Aug 2012 05:58:37 +0000 (09:58 +0400)
cmake/OpenCVModule.cmake
modules/gpu/CMakeLists.txt
modules/gpu/perf/perf_precomp.hpp
modules/gpu/perf/utility.cpp [moved from modules/gpu/perf/perf_utility.cpp with 100% similarity]
modules/gpu/perf/utility.hpp [moved from modules/gpu/perf/perf_utility.hpp with 100% similarity]
modules/gpu/test/test_precomp.cpp [moved from modules/gpu/test/precomp.cpp with 100% similarity]
modules/gpu/test/test_precomp.hpp [moved from modules/gpu/test/precomp.hpp with 100% similarity]

index 543f997..018a467 100644 (file)
@@ -509,8 +509,6 @@ endmacro()
 macro(ocv_add_precompiled_headers the_target)
   if("${the_target}" MATCHES "^opencv_test_.*$")
     SET(pch_path "test/test_")
-  elseif("${the_target}" MATCHES "opencv_perf_gpu_cpu")
-    SET(pch_path "perf_cpu/perf_cpu_")
   elseif("${the_target}" MATCHES "^opencv_perf_.*$")
     SET(pch_path "perf/perf_")
   else()
index e24b73a..5d2c440 100644 (file)
@@ -111,43 +111,3 @@ ocv_add_accuracy_tests(FILES "Include" ${test_hdrs}
                        FILES "Src" ${test_srcs}
                        ${nvidia})
 ocv_add_perf_tests()
-
-
-
-set(perf_cpu_path "${CMAKE_CURRENT_SOURCE_DIR}/perf_cpu")
-if(BUILD_PERF_TESTS AND EXISTS "${perf_cpu_path}")
-    # opencv_highgui is required for imread/imwrite
-    set(perf_deps ${the_module} opencv_ts opencv_highgui opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_nonfree)
-    ocv_check_dependencies(${perf_deps})
-
-    if(OCV_DEPENDENCIES_FOUND)
-      set(the_target "opencv_perf_gpu_cpu")
-
-      ocv_module_include_directories(${perf_deps} "${perf_cpu_path}")
-
-      if(NOT OPENCV_PERF_${the_module}_CPU_SOURCES)
-        file(GLOB perf_srcs "${perf_cpu_path}/*.cpp")
-        file(GLOB perf_hdrs "${perf_cpu_path}/*.hpp" "${perf_cpu_path}/*.h")
-        source_group("Src" FILES ${perf_srcs})
-        source_group("Include" FILES ${perf_hdrs})
-        set(OPENCV_PERF_${the_module}_CPU_SOURCES ${perf_srcs} ${perf_hdrs})
-      endif()
-
-      add_executable(${the_target} ${OPENCV_PERF_${the_module}_CPU_SOURCES})
-      target_link_libraries(${the_target} ${OPENCV_MODULE_${the_module}_DEPS} ${perf_deps} ${OPENCV_LINKER_LIBS})
-
-      # Additional target properties
-      set_target_properties(${the_target} PROPERTIES
-        DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
-        RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}"
-      )
-
-      if(ENABLE_SOLUTION_FOLDERS)
-        set_target_properties(${the_target} PROPERTIES FOLDER "tests performance")
-      endif()
-
-      ocv_add_precompiled_headers(${the_target})
-    else(OCV_DEPENDENCIES_FOUND)
-      #TODO: warn about unsatisfied dependencies
-    endif(OCV_DEPENDENCIES_FOUND)
-  endif()
index be3f234..8378599 100644 (file)
@@ -27,7 +27,7 @@
 #include "opencv2/nonfree/nonfree.hpp"\r
 #include "opencv2/legacy/legacy.hpp"\r
 \r
-#include "perf_utility.hpp"\r
+#include "utility.hpp"\r
 \r
 #ifdef GTEST_CREATE_SHARED_LIBRARY\r
 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined\r