[CMake] cmake qt4 Lplates again

luxInteg lux-integ at btconnect.com
Sat Dec 11 12:46:37 EST 2010


Greetings,

Still with    cmake L-plates firmly on ( with a Qt4  project  )  I have now   
stumbled into this:-

I have a series of header files to compile into  .cpp files  via the  
QT4_WRAP_CPP() utility.  Just one of the file needs to  'compiled'
beforehand    then compiled  to object code  with  other normal .cpp source-
files beforehand.   I thus want to   set the directory for  the generated 
'transitory' file. (for obvious reasons  such as    to know where it is!)

I checked the cmake doc and wikis, mailing list etc and the best I came across 
was this:-
http://www.mail-archive.com/cmake@cmake.org/msg24990.html

sugggesting the following:-
-------------------------------------  

FILE(GLOB MOC_HEADERS    moc/*.h )
QT4_WRAP_CPP(out_moc_files ${MOC_HEADERS})
And the generated files are going in my CMAKE_BINARY_DIR.
----------------------------

Has  there been any   changes that allow     the generated file to be placed 
in say $(CMAKE_BINARY_DIRECTORY}/somedirectory?  
and if so   how is this  achieved.

thanks n advance

sincerely
luxIngeg


More information about the CMake mailing list