<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
I have an application source code that use CMake on a partition shared between Windows and Linux on the same computer (Linux and Windows being in dual boot).<br>
<br>
How can I use Kdevelop on this project while on Linux and also on Windows ?<br>
<br>
With qtcreator, I used to use 2 subfolders as qtcreator store the project settings in a CMakeLists.txt.user file.<br>
The layout is like this:<br>
<span style="font-family:monospace,monospace">application\<br>
- src\<br>
- CMakeLists.txt<br>
- project-linux\<br>
- CMakeLists.txt<br>
- CMakeLists.txt.user<br>
- project-windows\<br>
- CMakeLists.txt<br>
- CMakeLists.txt.user</span><br>
<br>
</div>
The CMakeLists.txt in project-* folder are just including the one in the root dir (using include(../CMakeLists.txt)).<br>
<br>
</div>
So when on linux, I use the project-linux folder and on windows the project-windows folder. QtCreator shows the whole project like this in its project view:<br>
</div>
<span style="font-family:monospace,monospace">application\ <- the project name based on project() CMake directive<br>
</span></div>
<div><span style="font-family:monospace,monospace">- CMakeLists.txt <- this is the one including the ../CMakeLists.txt<br>
</span></div>
<div><span style="font-family:monospace,monospace">- ..\<br>
</span></div>
<span style="font-family:monospace,monospace"> - CMakeLists.txt<br>
</span></div>
<span style="font-family:monospace,monospace"> - src\<br>
- ...</span><br>
<br>
<br>
</div>
On kdevelop, when I do that so .kdev folder and files are kept separated between linux and windows, I don't have the parent directory in the project folder view, but only this:<br>
</div>
<span style="font-family:monospace,monospace">- project-windows\<br>
</span></div>
<span style="font-family:monospace,monospace"> - CMakeLists.txt</span><br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
</div>
<div>Is there actually a way to handle multiple OS with a common source dir without using separate source directories ?<br>
<br>
</div>
<div>Thanks,<br>
</div>
<div>Alexis Murzeau<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>