automoc problem

Michael Olbrich michael-olbrich at web.de
Thu Aug 2 09:21:56 CEST 2007


Hi,

I'm not sure if this is a bug or intentional, but the kde4 moc magic is
missing some of my classes. Basically I have two QObject classes, one
defined in the header file and the other in the corresponding source
file. The created moc file only contains the stuff for the second class.
Example attached.
No problems when both classes are defined in the same file.

michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.h
Type: text/x-chdr
Size: 172 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070802/f26aafd0/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.cpp
Type: text/x-c++src
Size: 392 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070802/f26aafd0/attachment-0001.bin 
-------------- next part --------------
project(foobar)

find_package(KDE4 REQUIRED)
include (KDE4Defaults)

include_directories (${KDE4_INCLUDES})

include_directories(${KDEBASE_WORKSPACE_SOURCE_DIR}/libs)

set(foo_SRCS
    foo.cpp
)

kde4_add_executable(foo ${foo_SRCS})
target_link_libraries(foo  ${KDE4_KDECORE_LIBS})

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070802/f26aafd0/attachment.pgp 


More information about the Kde-buildsystem mailing list