Merge pull request #3620 from asmorkalov:native_samples_install

This commit is contained in:
Vadim Pisarevsky 2015-01-18 18:22:27 +00:00
commit 9fb0f5ac51

View File

@ -19,9 +19,11 @@ if(ANDROID AND BUILD_ANDROID_EXAMPLES)
add_subdirectory(android)
endif()
install(FILES "CMakeLists.txt"
if(INSTALL_C_EXAMPLES)
install(FILES "CMakeLists.txt"
DESTINATION ${OPENCV_SAMPLES_SRC_INSTALL_PATH}
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ COMPONENT samples)
endif()
#
# END OF BUILD CASE 1: Build samples with library sources