Bug 115421

Summary: adding externally created source files to project
Product: [Applications] kdevelop Reporter: Rob L <robert.leathley>
Component: Build tools: Custom MakefilesAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 3.2.3   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rob L 2005-10-31 13:58:31 UTC
Version:           3.2.3 (using KDE KDE 3.4.3)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.3.3 
OS:                Linux

There doesn't seem to be a way of adding source files created outside kdevelop to a project.

These files appear in the 'file tree', 'file selector' etc. but only have a 'remove from project' context menu, even though they are not in the project (is this a bug - should there be an 'add too project option'?)

Ideally, I would like kdevelop to automatically add (and remove) files matching a pattern (src/*.cpp, include/*.h) to the project and the class browser.

I am working on a project in which some developers are using other tools such as vim & MS Visual Studio, so I would like to see any changes they make.  The project is 'custom make', c++ and under Clearcase.
Comment 1 Amilcar do Carmo Lucas 2005-10-31 16:14:03 UTC
Did you read the FAQ ?
Comment 2 Rob L 2005-10-31 16:23:40 UTC
I did, the most relavant section I could find was 'How to add existing files to a project?'

As I'm using a custom make project, it just says copy the files into the src directory and edit the makefile, which I'm doing.

However kdevelop still does not seem to 'know' about them unless they appear in [project].kdevelop.filelist so they are missing from the class list.
Comment 3 Alexander Neundorf 2005-11-24 19:36:54 UTC
Right click on the file in the file tree part, and select "add file to project" there.
Comment 4 Rob L 2005-11-25 10:17:29 UTC
I had tried this but it appears to have no effect.  Files in the project are shown in bold, but others stay in normal font and do not get added to .kdevelop.filelist
Comment 5 Alexander Neundorf 2005-12-04 22:04:13 UTC
Fixed now in svn, so it will work in kde 3.5.1

Alex