Am Montag, 16. September 2013, 10:12:41 schrieb Stephen Kelly:
> Hi there,
> 
> I've pushed the Qt-auto-generators topic to my clone.
> 
>  https://gitorious.org/cmake/steveires-cmake/commits/Qt-auto-generators
> 
> It is a proof of concept for features similar to AUTOMOC, but for invoking
> the uic and rcc tools shipped with Qt. I'd like to generalize the AUTOMOC
> feature to be able to remove more of the need to use macros with Qt for ui
> files and rcc files.

Does that become something like a "put anything into the source list"? I 
thought about something like this:

add_executable(foo foo.cpp foo.h foo.ui main.cpp junk.xml)

And in CMake there is a set of filters that can be enabled by properties (like 
the AUTOMOC) one.

Something like this

filter_cpp() -> add to compiler inputs
filter_automoc() -> the automoc stuff
filter_header() -> just mark as used
filter_ui() -> uic
filter_rcc() -> qrc
filter_res() -> add to linker inputs on Windows, just mark as used on other 
platforms

The junk.xml file is not accepted by any filter, so it would raise an error as 
"unknown source file".

It would become extremely useful if such filters could be added by CMake code. 
Think of KDE just adding a filter for kcfg files so they could just be added to 
the targets as an ordinary source file.

Greeting,

Eike
-- 

Attachment: signature.asc
Description: This is a digitally signed message part.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to