From kde-devel Sat Jun 16 15:25:00 2012 From: Anatoli Gorchetchnikov Date: Sat, 16 Jun 2012 15:25:00 +0000 To: kde-devel Subject: Re: issue with config generation Message-Id: <201206161125.00399.anatoli () cns ! bu ! edu> X-MARC-Message: https://marc.info/?l=kde-devel&m=133986051728375 On Saturday, June 16, 2012 11:12:05 Andreas Pakulat wrote: > Hi, > > Am Samstag, 16. Juni 2012 schrieb Anatoli Gorchetchnikov : > > Hi all, > > > > I am trying to follow > > > > http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT > > > > tutorial. I got down to the Use and Dialogs section, and I am expacting > > to see > > generated .cpp and .h files in my build tree, but I don't. If I run > > kconfig_compiler from command line it does generate the files; configure > > command in KDeveloper ouputs that it finds kconfig_compiler, but somewhy > > the build process does not engage it. I attach my CMakeLists.txt and > > kcfg/kcfgc files just in case. > > > > I can surely generate these by hand and live with it, but I rather do it > > automagically... Feels like some minor detail that I have missed > > somewhere... > > Your problem is that there is no dependency set up so the kcfg files are > turned into code. The reason for that is that no target uses the generated > files, because the kcfg-command comes after the add_executable one. Cmake > is not purely declarative, sometimes order of things does matter, this is > such a case. The kde4_add_kcfg-command addsfiles to the SRCS-variable and > these files need to end up inthe executable target. > > Andreas Thanks Andreas, I just realized too that it was the order of these two lines :) Regards, Anatoli -- Anatoli Gorchetchnikov, PhD Research Assistant Professor Neuromorphics Lab Boston University 677 Beacon St Boston, MA, 02215 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<