Bug 225007 - KDevelop is not finding the kde4_add_executable cmake function
Summary: KDevelop is not finding the kde4_add_executable cmake function
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 14:45 UTC by Blackpaw
Modified: 2010-02-01 13:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The source of the project which demonstrates the problem (74.32 KB, application/x-compressed-tar)
2010-01-31 14:47 UTC, Blackpaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blackpaw 2010-01-31 14:45:23 UTC
Version:           3.9.97 (using KDevPlatform 0.9.97) (using 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.31-17-generic

I have a KDE4 GUI project generated by kapptemplate, it has the kde4_add_executable in a CMakeLists.txt file in the srcs subdirectory.

Unfortunately KDevelop does not seem to registering it, hence there is no executable icon in the project tree, nor in the Launch Configurations dialog.
Comment 1 Blackpaw 2010-01-31 14:47:30 UTC
Created attachment 40412 [details]
The source of the project which demonstrates the problem

When loading this project in kdevelop it should fail to display the executable icon in the project tree.

kde4_add_executable(blackweb ${blackweb_SRCS}) is in:
 blackweb/src/CMakeLists.txt
Comment 2 Blackpaw 2010-01-31 14:49:42 UTC
Note:Adding "kde4_add_executable(blackweb ${blackweb_SRCS})" to the root CMakeLists.txt will cause the project executable icon to appear, though of course the project will now fail to build :(
Comment 3 Andreas Pakulat 2010-01-31 22:47:47 UTC
Hmm, this works fine for me here. I get this hierarchy:

blackweb
 |
 |- src
 |   |
 .   |- blackweb  (this is the executable target)
 .   .    |
 .   .    |- bapplication.cpp
....

Can you please run kdebugdialog and enable the 2 cmake debug areas. Then run kdevelop --sessions to find the session with your project and then run 

KDEV_SESSION={the session number} kdevelop >2&1 | tee kdevelop.log

And attach the logfile here.
Comment 4 Blackpaw 2010-02-01 03:47:14 UTC
Ok, I'm at more machine and it works fine just as you describe ... I could swear its not on my home machine.

Will double check that when I get home and let you know one way or another!
Comment 5 Blackpaw 2010-02-01 13:07:09 UTC
Checked my home pc and its there as well (the executable icon). Don't know how I managed to miss it all this time, sorry for wasting your time.