2012-10-17 01:18:30 +02:00
|
|
|
set(the_target "example_gpu_performance")
|
|
|
|
|
|
|
|
file(GLOB sources "performance/*.cpp")
|
|
|
|
file(GLOB headers "performance/*.h")
|
|
|
|
|
2014-08-22 15:33:24 +02:00
|
|
|
if(HAVE_opencv_xfeatures2d)
|
2014-08-30 00:49:56 +02:00
|
|
|
ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include")
|
2013-03-15 11:09:39 +01:00
|
|
|
endif()
|
|
|
|
|
2014-08-30 00:55:06 +02:00
|
|
|
if(HAVE_opencv_bgsegm)
|
|
|
|
ocv_include_directories("${opencv_bgsegm_SOURCE_DIR}/include")
|
|
|
|
endif()
|
|
|
|
|
2012-10-17 01:18:30 +02:00
|
|
|
add_executable(${the_target} ${sources} ${headers})
|
2014-08-01 16:11:20 +02:00
|
|
|
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
2012-10-17 01:18:30 +02:00
|
|
|
|
2014-08-22 15:33:24 +02:00
|
|
|
if(HAVE_opencv_xfeatures2d)
|
|
|
|
ocv_target_link_libraries(${the_target} opencv_xfeatures2d)
|
2013-03-15 11:09:39 +01:00
|
|
|
endif()
|
|
|
|
|
2014-08-30 00:55:06 +02:00
|
|
|
if(HAVE_opencv_bgsegm)
|
|
|
|
ocv_target_link_libraries(${the_target} opencv_bgsegm)
|
|
|
|
endif()
|
|
|
|
|
2012-10-17 01:18:30 +02:00
|
|
|
set_target_properties(${the_target} PROPERTIES
|
|
|
|
OUTPUT_NAME "performance_gpu"
|
2013-07-24 11:55:18 +02:00
|
|
|
PROJECT_LABEL "(EXAMPLE_CUDA) performance")
|
2012-10-17 01:18:30 +02:00
|
|
|
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
|
|
|
set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|
2014-01-17 13:30:31 +01:00
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/gpu" COMPONENT samples)
|
2012-10-17 01:18:30 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(INSTALL_C_EXAMPLES AND NOT WIN32)
|
2013-07-24 11:55:18 +02:00
|
|
|
file(GLOB CUDA_FILES performance/*.cpp performance/*.h)
|
|
|
|
install(FILES ${CUDA_FILES}
|
2014-01-27 14:57:11 +01:00
|
|
|
DESTINATION ${OPENCV_SAMPLES_SRC_INSTALL_PATH}/gpu/performance
|
2014-01-27 11:20:30 +01:00
|
|
|
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
|
|
|
|
COMPONENT samples)
|
2012-10-17 01:18:30 +02:00
|
|
|
endif()
|