2012-10-17 07:18:30 +08:00
|
|
|
set(the_target "example_gpu_performance")
|
|
|
|
|
|
|
|
file(GLOB sources "performance/*.cpp")
|
|
|
|
file(GLOB headers "performance/*.h")
|
|
|
|
|
2014-08-22 21:33:24 +08:00
|
|
|
if(HAVE_opencv_xfeatures2d)
|
2017-01-19 21:56:06 +08:00
|
|
|
ocv_include_modules_recurse(opencv_xfeatures2d)
|
2013-03-15 18:09:39 +08:00
|
|
|
endif()
|
|
|
|
|
2014-08-30 06:55:06 +08:00
|
|
|
if(HAVE_opencv_bgsegm)
|
2017-01-19 21:56:06 +08:00
|
|
|
ocv_include_modules_recurse(opencv_bgsegm)
|
2014-08-30 06:55:06 +08:00
|
|
|
endif()
|
|
|
|
|
2012-10-17 07:18:30 +08:00
|
|
|
add_executable(${the_target} ${sources} ${headers})
|
2014-08-01 22:11:20 +08:00
|
|
|
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
2012-10-17 07:18:30 +08:00
|
|
|
|
2014-08-22 21:33:24 +08:00
|
|
|
if(HAVE_opencv_xfeatures2d)
|
|
|
|
ocv_target_link_libraries(${the_target} opencv_xfeatures2d)
|
2013-03-15 18:09:39 +08:00
|
|
|
endif()
|
|
|
|
|
2014-08-30 06:55:06 +08:00
|
|
|
if(HAVE_opencv_bgsegm)
|
|
|
|
ocv_target_link_libraries(${the_target} opencv_bgsegm)
|
|
|
|
endif()
|
|
|
|
|
2012-10-17 07:18:30 +08:00
|
|
|
set_target_properties(${the_target} PROPERTIES
|
|
|
|
OUTPUT_NAME "performance_gpu"
|
2013-07-24 17:55:18 +08:00
|
|
|
PROJECT_LABEL "(EXAMPLE_CUDA) performance")
|
2012-10-17 07:18:30 +08:00
|
|
|
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
|
|
|
set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|
2014-01-17 20:30:31 +08:00
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/gpu" COMPONENT samples)
|
2012-10-17 07:18:30 +08:00
|
|
|
endif()
|
|
|
|
|
2018-02-09 18:30:04 +08:00
|
|
|
ocv_install_example_src("gpu/performance" performance/*.cpp performance/*.h)
|