opencv/samples/gpu/performance/CMakeLists.txt

35 lines
1.0 KiB
CMake
Raw Normal View History

2012-10-17 07:18:30 +08:00
set(the_target "example_gpu_performance")
file(GLOB sources "performance/*.cpp")
file(GLOB headers "performance/*.h")
if(HAVE_opencv_nonfree)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/nonfree/include")
endif()
2012-10-17 07:18:30 +08:00
add_executable(${the_target} ${sources} ${headers})
2013-07-24 17:55:18 +08:00
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
2012-10-17 07:18:30 +08:00
2013-03-18 20:14:37 +08:00
if(HAVE_opencv_nonfree)
target_link_libraries(${the_target} opencv_nonfree)
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)
install(TARGETS ${the_target} RUNTIME DESTINATION "samples/gpu" COMPONENT main)
endif()
if(INSTALL_C_EXAMPLES AND NOT WIN32)
2013-07-24 17:55:18 +08:00
file(GLOB CUDA_FILES performance/*.cpp performance/*.h)
install(FILES ${CUDA_FILES}
2012-10-17 07:18:30 +08:00
DESTINATION share/OpenCV/samples/gpu/performance
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
endif()