From 34f0da601009d8ac6133429c3953678f860c5cb3 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 30 Dec 2014 10:13:10 +0000 Subject: [PATCH] Act on INSTALL_PYTHON_EXAMPLES --- samples/CMakeLists.txt | 4 ++++ samples/python2/CMakeLists.txt | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 samples/python2/CMakeLists.txt diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index e1021de513..467ca162a7 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -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 # diff --git a/samples/python2/CMakeLists.txt b/samples/python2/CMakeLists.txt new file mode 100644 index 0000000000..7fa245447c --- /dev/null +++ b/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()