I have imported an existing Cmake project in nsight using these steps:
- File > New > Makefile Project with Existing Code.
- Produced the make file using cmake command.
- Project > Build Project
The project was successfully build, and the executable file was created in the project directory.
I have executed the project using command line and it was successful.
Now when i try to run the executable using nsight run > run_as_local_application. It isn’t able to locate the executable file and prompt me the above error.
In order to explicitly specify the path to executable, i added the path at properties > Run/Debug settings > New > C/C++ application.
But still it isn’t able to locate the executable file, though the building process successfully produce the executable file in the project folder.