Version: (using KDE 3.5.9) Installed from: Gentoo Packages OS: Linux I write cross-country platform appendices under various IDE, very much it would be desirable to have in such structure kdevelop: project_name | +-- include +-- project | | | +-- bcb6 ; borland builder c++ | +-- cmake | +-- doxygen | +-- evs4 ; embedded visual studio | +-- kdevelop | +-- vs6 | +-- vs7 | \-- vs8 ; visual studio | +-- shared +-- source \-- target in current version 3.5.9 very difficultly configure kdevelop for such structure.
Thanks for reminding me of this one, I somehow lost it on my todo lists. This will be done for KDevelop4.
kdevelop4 support cmake :)
the project files (foo.kdev file and .kdev folder) are hardcoded. probably they will stay like this until someone steps up with a good patch. But this bug is not yet fixed.
I don't know if it's bad practice or not to resume this old "bug", but I think this issue should be addressed. CMake allow to specify a source and a build folder with command line parameters -S <src> and -B <build> respectively, and even the cmake-gui allow to select the two of them. It's usefull to move all source files (including root CMakeLists.txt) in a separate folder other than project files, so you can share source files with users using different IDE without the need to .gitignore them. Like this: root folder | +-- build/ | | | +-- <output build files> +-- src/ | | | +-- <input source files> | +-- CMakeLists.txt | +-- main.cpp +-- .kdev4/ | | | +-- <user preferences files> +-- project.kdev4 With this layout the git repo can be inside the src/ folder if you want to share only the sources, or in the root if you want to share both sources and project files.
It is very old request from me :) I think we can close it. After 15 years it doesn’t make any sense because CMake really does the job.
Yes, CMake does it, but not kdevelop ! You cannot set kdevelop to invoke CMake using separate folders, it always treat project folder as source folder also. I have tried to set the CMake parameters -S ... and -B ... in project configuration, but when start configuring it invoke CMake appending the project root folder at the end of the command line, resulting in a warning: "Ignoring extra path from command line"
I agree. Let's it open again :) May KDevelop developers put their opinion.