cmake: install pdb's when present

This commit is contained in:
Anonymous Maarten committed 2023-10-22 18:53:34 +02:00
1 parent e3e41b69a1
commit 90255914a8
3 files changed
+14 -1

No files matched your search

+5
View File
@@ -479,6 +479,11 @@ if(SDL_INSTALL_TESTS)
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/SDL2
)
endif()
if(MSVC)
foreach(test ${SDL_TEST_EXECUTABLES})
install(FILES $<TARGET_PDB_FILE:${test}> DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/SDL2" OPTIONAL)
endforeach()
endif()
install(
FILES ${RESOURCE_FILES}
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/installed-tests/SDL2