Dear all,

I am currently working on the delivery of various Qt-based drivers for 
plplot, based on our own version of these drivers in our QSAS software.

Unfortunately, none of us in the team has knowledge in cmake, and 
although I've managed to do most of what I wanted, I'm still stuck on 
one point, and I would appreciate some help.

The Qt library somehow extends the C++ language by adding keywords in 
the class declarations (in my case in qt.h). A qt.moc file has to be 
generated from this file using the Qt moc software, converting the Qt 
keywords to C++ implementations.

Thus, before compiling my qt.cpp implementation, I have to produce a 
qt.moc file from qt.h. The QT4_GENERATE_MOC macro is supposed to do 
that, but I haven't found exactly where to put this call.

I've added it in drivers-finish.cmake, as follows:
elseif(DRIVER STREQUAL "qt")
        FIND_PACKAGE(Qt4)
        INCLUDE(${QT_USE_FILE})
        QT4_GENERATE_MOC(qt.h qt.moc)
         set(${DRIVER}_SOURCE
        ${CMAKE_SOURCE_DIR}/drivers/${DRIVER}.cpp
        ${${DRIVER}_SOURCE}
But the qt.moc file is nowhere to be found. Maybe it should rather go 
somewhere in drivers/CMakeLists.txt? Or cmake/modules/qt.cmake?

Any information would be welcome. Of course feel free to ask me for any 
detail I would have omitted.

Cheers,

Alban

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to