1 set(the_target "example_gpu_performance")
3 file(GLOB sources "performance/*.cpp")
4 file(GLOB headers "performance/*.h")
6 if(HAVE_opencv_xfeatures2d)
7 ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include")
10 add_executable(${the_target} ${sources} ${headers})
11 ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
13 if(HAVE_opencv_xfeatures2d)
14 ocv_target_link_libraries(${the_target} opencv_xfeatures2d)
17 set_target_properties(${the_target} PROPERTIES
18 OUTPUT_NAME "performance_gpu"
19 PROJECT_LABEL "(EXAMPLE_CUDA) performance")
21 if(ENABLE_SOLUTION_FOLDERS)
22 set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")
26 install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/gpu" COMPONENT samples)
29 if(INSTALL_C_EXAMPLES AND NOT WIN32)
30 file(GLOB CUDA_FILES performance/*.cpp performance/*.h)
31 install(FILES ${CUDA_FILES}
32 DESTINATION ${OPENCV_SAMPLES_SRC_INSTALL_PATH}/gpu/performance
33 PERMISSIONS OWNER_READ GROUP_READ WORLD_READ