Merge branch 'up2.4.9' into tizen
[profile/ivi/opencv.git] / data / CMakeLists.txt
1 file(GLOB HAAR_CASCADES haarcascades/*.xml)
2 file(GLOB LBP_CASCADES lbpcascades/*.xml)
3
4 if(ANDROID)
5   install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
6   install(FILES ${LBP_CASCADES}  DESTINATION sdk/etc/lbpcascades  COMPONENT libs)
7 elseif(NOT WIN32)
8   install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
9   install(FILES ${LBP_CASCADES}  DESTINATION share/OpenCV/lbpcascades  COMPONENT libs)
10 endif()
11
12 if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH)
13   if(ANDROID)
14     install(DIRECTORY ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
15   elseif(NOT WIN32)
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)
21   endif()
22 endif()