use glob to remove exe

This commit is contained in:
jasjuang 2017-07-10 07:58:52 -07:00
parent f9a0afb534
commit d887fa4a30

View File

@ -20,18 +20,10 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcdiff.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcecho.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcechobounds.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcls.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abcstitcher.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/abctree.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcdiff.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcecho.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcechobounds.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcls.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abcstitcher.exe)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/abctree.exe)
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
file(REMOVE ${EXE})
file(REMOVE ${DEBUG_EXE})
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/bin/Alembic.dll)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Alembic.dll ${CURRENT_PACKAGES_DIR}/debug/bin/Alembic.dll)