Bug 318499

Summary: targets not detected properly in cmake project
Product: [Applications] kdevelop Reporter: Hannes H <bugzilla>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Hannes H 2013-04-17 11:05:56 UTC
Both in the project view the actual targets (apps and tests) are not selectable and in the "Launch Configurations" the Project target dropdown is empty as well.

Reproducible: Always

Steps to Reproduce:
1. checkout SeqAn SVN from http://seqan.de
2. import project into Kdevelop
3. goto Projects toolview -> seqan-trunk/core/apps
Actual Results:  
none of the apps are selectable as build targets or "addable" to the build set. The parent directories are however

Expected Results:  
be able to select individual apps for compilation.
Comment 1 Aleix Pol 2013-04-23 00:31:04 UTC
Confirmed, this is because this "[!.]*" is being used but QRegExp doesn't support that yet, I'm unsure what we can do about it yet.
Comment 2 Hannes H 2013-04-23 10:32:04 UTC
(In reply to comment #1)
> Confirmed, this is because this "[!.]*" is being used but QRegExp doesn't
> support that yet, I'm unsure what we can do about it yet.

QtCreator 2.5.0 does detect the targets properly, maybe one can see how they do it?

Thanks for your help!
Comment 3 Aleix Pol 2013-09-25 01:11:43 UTC
Git commit 541481cadaa9336fdc46d0b30ea19b91213d8650 by Aleix Pol.
Committed on 25/09/2013 at 01:11.
Pushed by apol into branch 'master'.

Make it possible to glob directories

It should have worked as well with directories, not closing the bug since
[.*] is still unsupported.
We'll have to write a wildcard to regular expression conversor eventually
since QRegularExpression (in Qt5) doesn't support wildcards anyway.

M  +4    -6    projectmanagers/cmake/parser/cmakeprojectvisitor.cpp

http://commits.kde.org/kdevelop/541481cadaa9336fdc46d0b30ea19b91213d8650