Running Cross compiled tests


I'm using MinGW to compile a c++ library. It uses Gtest to test the code. I want to run the tests, they compile fine as an exe, and i can run them from the command line using wine Tests.exe. However Clion does not pick them up with the test runner because well, obviously Linux cant run a windows exe. How to i configure the target to run with Wine?

1 comment


It's not possible currently. We have a feature request about supporting custom executable for GTest - CPP-19048. Its implementation may help in your scenario. Feel free to comment or upvote the issue in order to get updates. See if you are not familiar with YouTrack.


Please sign in to leave a comment.