I think the automake manager of KDevelop lets you do that more easily than hand editing the files
Unfortunately I don't have KDevelop installed, so I cannot check how it is done.
Maybe asking on the KDevelop forum is the quicker path to KDevelop specific answers.
Cheers,
_