Re: [CMake] Inserting a dependency before Qt moc is run

2013-11-18 Thread Stephen Kelly
Aurélien Gâteau wrote: >> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ae016fa8a > > Thanks, how would one make use of this change if it gets in? I've reverted it for now as it breaks the KF5 build. Usage would be add_custom_target(cust ...) set_property(TARGET gwenviewPlugin1 AP

Re: [CMake] Inserting a dependency before Qt moc is run

2013-11-18 Thread Aurélien Gâteau
Stephen Kelly wrote: > Aurélien Gâteau wrote: > >> I defined a custom command to generate the .json > > Why a custom target? Wouldn't it make sense to generate the json file at > CMake-configure time using execute_process? The desktop file is not > generated. I think it would be better to be ab

Re: [CMake] Inserting a dependency before Qt moc is run

2013-11-17 Thread Stephen Kelly
Aurélien Gâteau wrote: > I defined a custom command to generate the .json Why a custom target? Wouldn't it make sense to generate the json file at CMake-configure time using execute_process? The desktop file is not generated. If that is possible, it 'makes the problem go away'. However, I th

[CMake] Inserting a dependency before Qt moc is run

2013-11-15 Thread Aurélien Gâteau
Hi, I am working on KDE Frameworks, which uses CMake. We make use of Qt5 plugin system, where a plugin can be described by a .json file, as documented here: http://doc-snapshot.qt-project.org/qt5-stable/qtplugin.html#Q_PLUGIN_METADATA We want to generate the .json files from .desktop files. We