mirror of
https://github.com/opencv/opencv.git
synced 2025-01-13 08:08:10 +08:00
6cf7d6ef4e
(cherry picked from commit f332cba14b
)
18 lines
725 B
CMake
18 lines
725 B
CMake
file(GLOB HAAR_CASCADES haarcascades/*.xml)
|
|
file(GLOB LBP_CASCADES lbpcascades/*.xml)
|
|
|
|
if(ANDROID)
|
|
install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
|
|
install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT libs)
|
|
elseif(NOT WIN32)
|
|
install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
|
|
install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT libs)
|
|
endif()
|
|
|
|
if (OPENCV_TEST_DATA_PATH)
|
|
if(ANDROID)
|
|
install(FILES ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
|
|
elseif(NOT WIN32)
|
|
install(FILES ${OPENCV_TEST_DATA_PATH} DESTINATION share/OpenCV/testdata COMPONENT tests)
|
|
endif()
|
|
endif() |