Commit 3ac951ff authored by Nick Laurenson's avatar Nick Laurenson
Browse files

OpenCV Fix install location

WIP
parent c7563038
......@@ -17,3 +17,14 @@ superbuild_add_project(opencv
-DBUILD_EXAMPLES=OFF
-DGFLAGS=OFF
)
# windows opencv install architecture doesn't match the one used here
if (WIN32)
superbuild_project_add_step(opencv-copylibs
COMMAND "${CMAKE_COMMAND}"
-Dinstall_location:PATH=<INSTALL_DIR>
-P "${CMAKE_CURRENT_LIST_DIR}/scripts/opencv.copylibs.cmake"
DEPENDEES install
COMMENT "Copy .dll files to the bin/ directory"
WORKING_DIRECTORY <SOURCE_DIR>)
endif ()
# On windows, the dll must be next to the executable to run
file(GLOB opencv_dll ${install_location}/*/*/bin/opencv*.dll)
foreach (dll IN LISTS opencv_dll)
file(
COPY "${dll}"
DESTINATION "${install_location}/bin/"
)
endforeach()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment