[Qt-creator] Remote Linux plugin and CMake

Peter Kuemmel syntheticpp at gmx.net
Mon Aug 26 09:57:22 CEST 2013

> Hi,
> I know there are some people which would like to use cmake as their build system and make use of the remote linux support in creator. We need your input. The remote linux plugin is actually generic enough to make that possible. The remote linux plugin just needs information on what to deploy.
> There are at least 3 different ways we could implement that.
> - We could integrate with cpack. That is let cpack generate a package for us, which we then deploy and install.
> This is convenient for those that already are using cpack. And it's not much work to add the necessary lines to the CMakeLists.txt file.
> - We could "make install" the project into a temporary directory and then deploy that directory.
> This is easy to implement and probably works with most projects.
> - The project has to generate a file which tells Creator what to deploy. Oleksii Serdiuk has implemented that, and it works like this. The project has to have a CMakeDeployment.txt in the root of the project, which essentially contains a list of files that should be deployed and where to deploy them
> The benefit here is, that Oleksii already wrote a patch, and that we could use the same file format also for the generic and autotools projects.

Deploying and installing is principally different to debugging, sometimes you wanna use different files, files not used for installing, have fast startup times, ...
For instance, when you build directly into a NFS folder which is mounted by the target you don't need to install any files before starting the application,
but you still need a install rule when you deploy the application; such a setup couldn't be expressed very clear with option 1. and 2.
Or when you run a unit tests on the target you have a completely different setup to the installed one.

So I would go with 3. option.


> Now, what we need to decide are two related questions. What is the ideal way in your opinion? And would the 3. option be nevertheless a improvement for you?

More information about the Qt-creator mailing list