I'm trying to use the KDevelop Unit-test window to run my projects tests, but KDevelop gives the following error when I try to run them:
*** Could not start program '[path where it thinks my test is]'. Make sure that the path is specified correctly ***
However, I'm using the cmake variable EXECUTABLE_OUTPUT_PATH to organize my project, and KDevelop's [path where it thinks my test is] is set to the default executable output path instead.
Is there some way to make KDevelop aware of where the test is, possible through some CMake property on the executable target? I've tried INSTALL_RPATH, LOCATION, and setting the WORKING_DIRECTORY on the ADD_TEST command, but none of those things helped.
Note: I have the same problem running the executables in the debugger, but I can work around it by manually specifying the target location in the dialog box. Unit tests, however, don't seem to have such an override.
Aucun commentaire:
Enregistrer un commentaire