Run build project before pytest configuration?

Within CLion, for a pytest configuration, is there a way to have the CMake targets built before running the pytest tests? Many of the configurations in CLion include the ability to add “Build” to the “Before Launch” of the configuration. However, the pytest configuration does not allow this. At the moment, the best way I can see to accomplish this is to add a no-op dummy executable to my CMake file which has as dependencies all the targets the pytest configuration cares about. Then add have the pytest configuration run that in the “Before Launch” section. However, this is a slightly dirty workaround that pollutes my workspace a bit. Is there a better way to accomplish this? Thank you for your time!