[Cmake] CMake and KDevelop

Simon Drouin sdrouin at bic.mni.mcgill.ca
Thu Sep 2 16:51:04 UTC 2004


This message comes from the CMake mailing list and has been also posted 
to kdevelop-devel because it concers kdevelop too.

Alexander Neundorf wrote:

>>Hi all, 
>> 
>>Is anyone working on a way to integrate cmake into kdevelop (apart from  
>>creating custom makefile projects into kdevelop from makefiles generated  
>>by cmake)? 
>> 
>>Thanks in advance. 
>> 
>>Simon 
>>    
>>
> 
>I started playing with libCMakeLib.a which is built when building cmake. I
>got so 
>far that I was able to parse all the cmakelists.txt and list the targets,
>sources 
>and stuff. 
>If you are interested I can send you what I have so far. 
>I also downloaded the kdevelop sources but didn't get further yet. 
>I am not sure what I want to do: importing a cmake-based project, or
>creating 
>cmake-based projects with kdevelop. I think these both cases differ. 
>I'm afraid that when creating cmake-based projects with kdevelop there will
>be 
>problems with hand-editing the cmakelists.txt when they are created by
>kdevelop... 
>Actually I think the ideal would be more or less to replace the
>kdevelop-project 
>files by the cmakelists.txt. 
> 
>Bye 
>Alex 
>  
>

I think importing a cmake-based project is a much better option than creating one with kdevelop. Although eventually, it would be a good idea to be able to create basic projects with kdevelop. But I think this could be separated in 2 plugins in kdevelop. A CMake build manager that can import and manage existing projects and a CMake project wizard that would generate basic CMake projects. 

The CMake manager would allow you to create multiple configurations. Editing a configuration would bring up a window similar to the cmake gui under windows. The manager could watch for modifications to the CMakeLists.txt file and reparse it to ajust source file lists in kdevelop. When building or running or debugging a particular configuration, the manager would simply set the working directory correctly.

I don't know if I'll have the time to work on that anytime soon, but you can send me your code anyways. I'll give it a try.

Simon
 






More information about the KDevelop-devel mailing list