Merge pull request #3563 from cjmayo:pyexamples

This commit is contained in:
Vadim Pisarevsky 2015-01-19 11:09:58 +00:00
commit 381917b762
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,10 @@ if(ANDROID AND BUILD_ANDROID_EXAMPLES)
add_subdirectory(android)
endif()
if(INSTALL_PYTHON_EXAMPLES)
add_subdirectory(python2)
endif()
#
# END OF BUILD CASE 1: Build samples with library sources
#

View File

@ -0,0 +1,6 @@
if(INSTALL_PYTHON_EXAMPLES)
file(GLOB install_list *.py )
install(FILES ${install_list}
DESTINATION ${OPENCV_SAMPLES_SRC_INSTALL_PATH}/python2
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples)
endif()