From d033630ffaa7581e8ee8085dc7761b84676f4c86 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 8 Apr 2025 22:42:38 +0200
Subject: [PATCH] cmake: install test pdb's
---
test/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index d3ed080b7..707bd30fa 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -70,6 +70,9 @@ function(add_sdl_image_test_executable TARGET)
TARGETS ${TARGET}
DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/${PROJECT_NAME}"
)
+ if(MSVC)
+ SDL_install_pdb("${TARGET}" "${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/${PROJECT_NAME}")
+ endif()
endif()
endfunction()