Install data and test data on Windows
Because why not?
This commit is contained in:
parent
6a3a6416d7
commit
e8a7394009
@ -4,7 +4,7 @@ file(GLOB LBP_CASCADES lbpcascades/*.xml)
|
|||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
|
install(FILES ${HAAR_CASCADES} DESTINATION sdk/etc/haarcascades COMPONENT libs)
|
||||||
install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT libs)
|
install(FILES ${LBP_CASCADES} DESTINATION sdk/etc/lbpcascades COMPONENT libs)
|
||||||
elseif(NOT WIN32)
|
else()
|
||||||
install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
|
install(FILES ${HAAR_CASCADES} DESTINATION share/OpenCV/haarcascades COMPONENT libs)
|
||||||
install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT libs)
|
install(FILES ${LBP_CASCADES} DESTINATION share/OpenCV/lbpcascades COMPONENT libs)
|
||||||
endif()
|
endif()
|
||||||
@ -12,7 +12,7 @@ endif()
|
|||||||
if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH)
|
if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH)
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
install(DIRECTORY ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
|
install(DIRECTORY ${OPENCV_TEST_DATA_PATH} DESTINATION sdk/etc/testdata COMPONENT tests)
|
||||||
elseif(NOT WIN32)
|
else()
|
||||||
# CPack does not set correct permissions by default, so we do it explicitly.
|
# CPack does not set correct permissions by default, so we do it explicitly.
|
||||||
install(DIRECTORY ${OPENCV_TEST_DATA_PATH}
|
install(DIRECTORY ${OPENCV_TEST_DATA_PATH}
|
||||||
DIRECTORY_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
|
DIRECTORY_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
|
||||||
|
Loading…
Reference in New Issue
Block a user