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.
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
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 :(
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.
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!
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.