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
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to