I am working with a NVIDIA Jetson Nano with L4T and my local environment is ubuntu 20.04.
CLion is 2022.1.3.
I want to build locally but deploy and run remotely on the nano from within the IDE (press the green "Run" arrow and it all just happens and I see my stdout in the CLion Console).
I have succeeded with the following:
- Cross Compilation is working (using -DCMAKE_TOOLCHAIN_FILE=)
- Remote debug with gdbserver is working OK (but doesn't allow me to just run the executable without gdbserver)
- Full remote development allows me to run on the remote the way I want, but then I also have to build on the remote.
I will occasionally want to run under gdbserver, so that is a great option to have, but mostly I just want to build-local->deploy->run-remote from within the IDE.
Given that both the Remote GDB Server and full Remote Development each do part of what I want, I'm surprised that I can't seem to figure out how to do exactly what I want. What I want also feels like a common use-case workflow? I'm new to CLion and Cmake so maybe I'm missing something?