1 file(GLOB HAAR_CASCADES haarcascades/*.xml)
2 file(GLOB LBP_CASCADES lbpcascades/*.xml)
5 install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
6 install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT libs)
8 install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
9 install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT libs)
12 if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH)
14 install(DIRECTORY ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
16 # CPack does not set correct permissions by default, so we do it explicitly.
17 install(DIRECTORY ${OPENCV_TEST_DATA_PATH}
18 DIRECTORY_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
19 GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
20 DESTINATION share/OpenCV/testdata COMPONENT tests)