1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Added group targets for samples (opencv_samples, opencv_samples_<group>), install samples/data inseparate component 'samples_data'

This commit is contained in:
Maksim Shabunin
2018-02-09 16:17:01 +03:00
parent 2200e13c71
commit 2d1350a9d6
3 changed files with 25 additions and 1 deletions
+7
View File
@@ -1251,6 +1251,13 @@ function(ocv_add_samples)
set_target_properties(${the_target} PROPERTIES
FOLDER "samples/${module_id}")
endif()
# Add single target to build all samples for the module: 'make opencv_samples_bioinspired'
set(parent_target opencv_samples_${module_id})
if(NOT TARGET ${parent_target})
add_custom_target(${parent_target})
add_dependencies(opencv_samples ${parent_target})
endif()
add_dependencies(${parent_target} ${the_target})
if(WIN32)
install(TARGETS ${the_target} RUNTIME DESTINATION "samples/${module_id}" COMPONENT samples)