Skip to content

Install: added prebuilt samples installation#18294

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
mshabunin:install-bin-samples
Sep 15, 2020
Merged

Install: added prebuilt samples installation#18294
opencv-pushbot merged 1 commit intoopencv:3.4from
mshabunin:install-bin-samples

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

When option INSTALL_BIN_EXAMPLES is enabled, prebuilt samples binaries will be installed to the OPENCV_SAMPLES_BIN_INSTALL_PATH location. This variable was set but not used.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@mshabunin mshabunin requested a review from alalek September 8, 2020 17:32
if(WIN32)
install(TARGETS ${the_target} RUNTIME DESTINATION "samples/${module_id}" COMPONENT samples)
if(INSTALL_BIN_EXAMPLES)
install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/${module_id}" COMPONENT samples)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put default value into "OpenCVInstallLayout.cmake" too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean for OPENCV_SAMPLES_BIN_INSTALL_PATH? It is already there, e.g. Unix

ocv_update(OPENCV_SAMPLES_BIN_INSTALL_PATH "${OPENCV_BIN_INSTALL_PATH}")

@opencv-pushbot opencv-pushbot merged commit 8cb7eae into opencv:3.4 Sep 15, 2020
@alalek alalek mentioned this pull request Sep 19, 2020
@mshabunin mshabunin deleted the install-bin-samples branch July 10, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants