Skip to content

Commit

Permalink
Act on INSTALL_PYTHON_EXAMPLES
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo committed Dec 30, 2014
1 parent 61991a3 commit 34f0da6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/CMakeLists.txt
Expand Up @@ -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
#
Expand Down
6 changes: 6 additions & 0 deletions samples/python2/CMakeLists.txt
@@ -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()

0 comments on commit 34f0da6

Please sign in to comment.