Copy and install PDB files on msvc builds

This commit is contained in:
BtbN
2014-07-15 17:10:12 +02:00
parent 38c2fc87aa
commit 4b5b7534aa
2 changed files with 60 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
string(REGEX REPLACE "\\.(dll|exe)$" ".pdb" FNAME "${FNAME}")
if(CONFIG STREQUAL Debug OR CONFIG STREQUAL RelWithDebInfo)
file(COPY "${INPUT}/${FNAME}" DESTINATION "${OUTPUT}")
elseif(EXISTS "${OUTPUT}/${FNAME}")
file(REMOVE "${OUTPUT}/${FNAME}")
endif()