@ -712,11 +712,7 @@ function(ocv_add_perf_tests)
# T O D O : w a r n a b o u t u n s a t i s f i e d d e p e n d e n c i e s
endif ( OCV_DEPENDENCIES_FOUND )
if ( INSTALL_TESTS )
if ( ANDROID )
install ( TARGETS ${ the_target } RUNTIME DESTINATION sdk/etc/bin COMPONENT tests )
elseif ( NOT WIN32 )
install ( TARGETS ${ the_target } RUNTIME DESTINATION share/OpenCV/bin COMPONENT tests )
endif ( )
install ( TARGETS ${ the_target } RUNTIME DESTINATION ${ OPENCV_BIN_INSTALL_PATH } COMPONENT tests )
endif ( )
endif ( )
endfunction ( )
@ -773,11 +769,7 @@ function(ocv_add_accuracy_tests)
endif ( OCV_DEPENDENCIES_FOUND )
if ( INSTALL_TESTS )
if ( ANDROID )
install ( TARGETS ${ the_target } RUNTIME DESTINATION sdk/etc/bin COMPONENT tests )
elseif ( NOT WIN32 )
install ( TARGETS ${ the_target } RUNTIME DESTINATION share/OpenCV/bin COMPONENT tests )
endif ( )
install ( TARGETS ${ the_target } RUNTIME DESTINATION ${ OPENCV_BIN_INSTALL_PATH } COMPONENT tests )
endif ( )
endif ( )
endfunction ( )
@ -819,7 +811,7 @@ function(ocv_add_samples)
if ( INSTALL_C_EXAMPLES AND NOT WIN32 AND EXISTS "${samples_path}" )
file ( GLOB sample_files "${samples_path}/*" )
install ( FILES ${ sample_files }
D E S T I N A T I O N s h a r e / O p e n C V / s a m p l e s / $ { m o d u l e _ i d }
D E S T I N A T I O N $ { O P E N C V _ S A M P L E S _ S R C _ I N S T A L L _ P A T H } / $ { m o d u l e _ i d }
P E R M I S S I O N S O W N E R _ R E A D G R O U P _ R E A D W O R L D _ R E A D C O M P O N E N T s a m p l e s )
endif ( )
endfunction ( )