Running Google Test configurations for install targets

My project configuration requires that I run an install step prior to running tests.

With a normal CMake Application run/debug configuration, I can select the executable independently from the target, so I just edit the config to point to the install directory instead of the build directory, and everything works.

I'd also like to use the Google Test configurations in CLion. However, here the (test) executable cannot be selected independently, and it seems that the Google Test configuration will always run using the executable in the build directory. Is there any way to override this behavior and run the test executable that's been placed in my install directory after the install step, similar to what's available in a CMake Application configuration?

1 comment

Seems to not be supported, but there's an open issue for it:


Please sign in to leave a comment.