Doc: update video processing tutorial code for OpenCV v2.4.9 and v3a
[profile/ivi/opencv.git] / samples / gpu / performance / CMakeLists.txt
1 set(the_target "example_gpu_performance")
2
3 file(GLOB sources "performance/*.cpp")
4 file(GLOB headers "performance/*.h")
5
6 if(HAVE_opencv_nonfree)
7   ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/nonfree/include")
8 endif()
9
10 add_executable(${the_target} ${sources} ${headers})
11 ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
12
13 if(HAVE_opencv_nonfree)
14   ocv_target_link_libraries(${the_target} opencv_nonfree)
15 endif()
16
17 set_target_properties(${the_target} PROPERTIES
18     OUTPUT_NAME "performance_gpu"
19     PROJECT_LABEL "(EXAMPLE_CUDA) performance")
20
21 if(ENABLE_SOLUTION_FOLDERS)
22   set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")
23 endif()
24
25 if(WIN32)
26   install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/gpu" COMPONENT samples)
27 endif()
28
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
34           COMPONENT samples)
35 endif()