Merge pull request #9227 from alalek:cmake_fix_ocv_add_testdata

This commit is contained in:
Alexander Alekhin 2017-07-25 15:56:57 +00:00
commit 8e6e05ed3f

View File

@ -1116,7 +1116,7 @@ macro(ocv_add_testdata basedir dest_subdir)
endif() endif()
if(INSTALL_TESTS) if(INSTALL_TESTS)
install(DIRECTORY ${basedir}/ install(DIRECTORY ${basedir}/
DESTINATION ${OPENCV_TEST_DATA_INSTALL_PATH}/contrib/text DESTINATION ${OPENCV_TEST_DATA_INSTALL_PATH}/${dest_subdir}
COMPONENT "tests" COMPONENT "tests"
${ARGN} ${ARGN}
) )