Act on INSTALL_PYTHON_EXAMPLES
Conflicts: samples/CMakeLists.txt
This commit is contained in:
parent
a21fb63c28
commit
7a5aa06b9e
@ -25,6 +25,10 @@ if(INSTALL_C_EXAMPLES)
|
||||
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples)
|
||||
endif()
|
||||
|
||||
if(INSTALL_PYTHON_EXAMPLES)
|
||||
add_subdirectory(python2)
|
||||
endif()
|
||||
|
||||
#
|
||||
# END OF BUILD CASE 1: Build samples with library sources
|
||||
#
|
||||
|
6
samples/python2/CMakeLists.txt
Normal file
6
samples/python2/CMakeLists.txt
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user