2011-01-24 18:33:01 +08:00
|
|
|
set(the_target "example_gpu_performance")
|
|
|
|
|
|
|
|
file(GLOB sources "performance/*.cpp")
|
|
|
|
file(GLOB headers "performance/*.h")
|
|
|
|
|
|
|
|
add_executable(${the_target} ${sources} ${headers})
|
2012-02-03 19:26:49 +08:00
|
|
|
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
|
2011-01-24 18:33:01 +08:00
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES
|
|
|
|
OUTPUT_NAME "performance_gpu"
|
|
|
|
PROJECT_LABEL "(EXAMPLE_GPU) performance")
|
2012-06-27 20:02:31 +08:00
|
|
|
|
2011-05-17 17:40:06 +08:00
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
2012-02-03 19:26:49 +08:00
|
|
|
set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")
|
2012-06-27 20:02:31 +08:00
|
|
|
endif()
|
2011-01-24 18:33:01 +08:00
|
|
|
|
|
|
|
if(WIN32)
|
2012-02-03 19:26:49 +08:00
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION "samples/gpu" COMPONENT main)
|
2011-01-24 18:33:01 +08:00
|
|
|
endif()
|
|
|
|
|
2012-06-27 20:02:31 +08:00
|
|
|
if(INSTALL_C_EXAMPLES AND NOT WIN32)
|
2012-02-03 19:26:49 +08:00
|
|
|
file(GLOB GPU_FILES performance/*.cpp performance/*.h)
|
|
|
|
install(FILES ${GPU_FILES}
|
2012-06-27 20:02:31 +08:00
|
|
|
DESTINATION share/OpenCV/samples/gpu/performance
|
2012-02-03 19:26:49 +08:00
|
|
|
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
|
|
|
|
endif()
|