cmake: fix ocv_add_testdata() hardcoded path

This commit is contained in:
Alexander Alekhin 2017-07-25 06:56:03 +03:00
parent 8741d97a4f
commit 07334bc25c

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}
) )