mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
bugfixed OpenCV install for newer MSVC OpenCV-builds
This commit is contained in:
parent
f3e04406ec
commit
cf628b38ab
@ -1,12 +1,20 @@
|
|||||||
function(jkqtplotter_deployopencv TARGET_NAME)
|
function(jkqtplotter_deployopencv TARGET_NAME)
|
||||||
#use windeploy
|
|
||||||
if(OpenCV_FOUND)
|
if(OpenCV_FOUND)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_custom_command(TARGET ${EXENAME} POST_BUILD # Adds a post-build event the TARGET
|
if (EXISTS ${_OpenCV_LIB_PATH})
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
add_custom_command(TARGET ${EXENAME} POST_BUILD # Adds a post-build event the TARGET
|
||||||
"${_OpenCV_LIB_PATH}"
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
$<TARGET_FILE_DIR:${EXENAME}>
|
"${_OpenCV_LIB_PATH}"
|
||||||
|
"$<TARGET_FILE_DIR:${EXENAME}>"
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
if (EXISTS ${OpenCV_INSTALL_PATH}/bin)
|
||||||
|
add_custom_command(TARGET ${EXENAME} POST_BUILD # Adds a post-build event the TARGET
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
"${OpenCV_INSTALL_PATH}/bin"
|
||||||
|
"$<TARGET_FILE_DIR:${EXENAME}>"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
endif(OpenCV_FOUND)
|
endif(OpenCV_FOUND)
|
||||||
endfunction(jkqtplotter_deployopencv)
|
endfunction(jkqtplotter_deployopencv)
|
||||||
|
Loading…
Reference in New Issue
Block a user