|
|
|
@ -15,8 +15,12 @@ function(ocv_define_sample out_target source sub) |
|
|
|
|
if(WIN32 AND MSVC AND NOT BUILD_SHARED_LIBS) |
|
|
|
|
set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG") |
|
|
|
|
endif() |
|
|
|
|
if(WIN32) |
|
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION "samples/${sub}" COMPONENT samples) |
|
|
|
|
# Should be usable in stand-alone build scenario |
|
|
|
|
if((NOT DEFINED INSTALL_BIN_EXAMPLES AND WIN32) OR INSTALL_BIN_EXAMPLES) |
|
|
|
|
if(NOT DEFINED OPENCV_SAMPLES_BIN_INSTALL_PATH) |
|
|
|
|
set(OPENCV_SAMPLES_BIN_INSTALL_PATH "samples") |
|
|
|
|
endif() |
|
|
|
|
install(TARGETS ${the_target} RUNTIME DESTINATION "${OPENCV_SAMPLES_BIN_INSTALL_PATH}/${sub}" COMPONENT samples) |
|
|
|
|
endif() |
|
|
|
|
# Add single target to build all samples in the group: 'make opencv_samples_cpp' |
|
|
|
|
set(parent_target opencv_samples_${sub}) |
|
|
|
|