[Qt-interest] qmake and scope: prevent moc from moc'ing file? [SOLVED]

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu Feb 10 18:37:08 CET 2011


On 2011-02-10 Scott Scott Aron Bloom wrote:

> ...
> if (macx) {
>     HEADERS += Foo_Mac.h 
>     SOURCES += Foo_Mac.cpp
> } else:win32 {
>     HEADERS+= Foo_Windows.h
>     SOURCES += Foo_Windows.cpp
> } etc.
> ...
> You may have it set that for some reason the mac area is always true

Aye! Talking about shooting yourself into the foot: I indeed still had the Foo_Mac.h header added to the general HEADERS in the same file, a left-over from some testing; so it was added twice and hence always in the scope! Bummer!

Thanks, that was exactly the right hint! ;)

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22





More information about the Qt-interest-old mailing list