Feature: CPACK_POST_BUILD_SCRIPTS code version

Would it be feasible to add POST_BUILD functionality for CPack without having to create external files? As there also are install(CODE ...) and install(SCRIPT ...).

Would CPACK_POST_BUILD_CODE work? A list of individual CMake commands the same as install(CODE ...) and add_custom_command(TARGET ... POST_BUILD COMMAND ...).

I am using it for a template project, and would prefer to not have to worry about either exposing scripts not intended for external use, or how to keep names in the build directory unique if instead generating the script.