Ticket #32528: patch-samples_CMakeLists.txt.diff

File patch-samples_CMakeLists.txt.diff, 672 bytes (added by marin.saric@…, 13 years ago)
  • samples/CMakeLists.txt

    old new  
    1818add_subdirectory(swig_python)
    1919add_subdirectory(octave)
    2020endif()
     21
     22if(INSTALL_PYTHON_EXAMPLES)
     23  file(GLOB PYTHON_EXAMPLES python/*.py)
     24  file(GLOB PYTHON2_EXAMPLES python2/*.py)
     25
     26  install(FILES ${PYTHON_EXAMPLES}
     27          DESTINATION share/OpenCV/samples/python
     28          PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
     29  install(FILES ${PYTHON2_EXAMPLES}
     30          DESTINATION share/OpenCV/samples/python2
     31          PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
     32endif()
     33 No newline at end of file