2010-05-11 19:44:00 +02:00
|
|
|
file(GLOB HAAR_CASCADES haarcascades/*.xml)
|
|
|
|
file(GLOB LBP_CASCADES lbpcascades/*.xml)
|
|
|
|
|
2012-06-28 19:23:50 +02:00
|
|
|
if(ANDROID)
|
2014-01-17 13:30:31 +01:00
|
|
|
install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
|
|
|
|
install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT libs)
|
2012-06-28 19:23:50 +02:00
|
|
|
elseif(NOT WIN32)
|
2014-01-17 13:30:31 +01:00
|
|
|
install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
|
|
|
|
install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT libs)
|
2010-05-11 19:44:00 +02:00
|
|
|
endif()
|
2014-01-27 11:20:30 +01:00
|
|
|
|
2014-01-28 11:05:26 +01:00
|
|
|
if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH)
|
2014-01-27 11:20:30 +01:00
|
|
|
if(ANDROID)
|
2014-01-28 11:05:26 +01:00
|
|
|
install(DIRECTORY ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
|
2014-01-27 11:20:30 +01:00
|
|
|
elseif(NOT WIN32)
|
2014-02-06 20:36:23 +01:00
|
|
|
# CPack does not set correct permissions by default, so we do it explicitly.
|
|
|
|
install(DIRECTORY ${OPENCV_TEST_DATA_PATH}
|
|
|
|
DIRECTORY_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
|
|
|
|
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
|
|
|
DESTINATION share/OpenCV/testdata COMPONENT tests)
|
2014-01-27 11:20:30 +01:00
|
|
|
endif()
|
|
|
|
endif()
|