From 867d5d1bbf657253353bccda57ecf83314e27788 Mon Sep 17 00:00:00 2001 From: Daniel Girardeau-Montaut Date: Sun, 28 Sep 2025 18:57:14 +0200 Subject: [PATCH] Export the OpenCV dll in debug mode as well --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c82967a..fa1fdeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,8 +56,13 @@ if (PLUGIN_STANDARD_3DMASC) ${CloudCompare_SOURCE_DIR}/../common) target_link_libraries( ${PROJECT_NAME} ${OpenCV_LIBS} ) - set( OpenCV_WORLD_DLL "" CACHE FILEPATH "Opencv 'World' DLL file path" ) - copy_files("${OpenCV_WORLD_DLL}" "${CLOUDCOMPARE_DEST_FOLDER}" 1) #mind the quotes! + set( OpenCV_WORLD_DLL "" CACHE FILEPATH "OpenCV 'World' DLL file path" ) + copy_files("${OpenCV_WORLD_DLL}" "${CLOUDCOMPARE_DEST_FOLDER}" 0) #mind the quotes! + + if( CMAKE_CONFIGURATION_TYPES ) + set( OpenCV_WORLD_DEBUG_DLL "" CACHE FILEPATH "OpenCV Debug 'World' DLL file path" ) + copy_files("${OpenCV_WORLD_DEBUG_DLL}" "${CLOUDCOMPARE_DEST_FOLDER}" 2) #mind the quotes! + endif() #================ # git commit hash