Act on INSTALL_PYTHON_EXAMPLES
authorChris Mayo <aklhfex@gmail.com>
Tue, 30 Dec 2014 10:13:10 +0000 (10:13 +0000)
committerDikay900 <dark900@xyz.de>
Sat, 25 Apr 2015 12:46:16 +0000 (14:46 +0200)
Conflicts:
samples/CMakeLists.txt

samples/CMakeLists.txt
samples/python2/CMakeLists.txt [new file with mode: 0644]

index a2b8f68..d2089de 100644 (file)
@@ -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
 #
diff --git a/samples/python2/CMakeLists.txt b/samples/python2/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7fa2454
--- /dev/null
@@ -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()