[Cmake] How to write a specific wrapper ?

Mathieu Malaterre Mathieu . Malaterre at creatis . insa-lyon . fr
Thu, 30 Oct 2003 17:32:37 +0100


I used ADD_CUSTOM_COMMAND this way:

http://www . cmake . org/pipermail/cmake/2003-January/003221 . html

with:
s/ARGUMENTS/ARG/
s/OUTPUTS/OUTPUT/

:)

HTH
mathieu

Jean-Francois LECOMTE wrote:
> Hi there,
> 
> I do like cmake but i didn't find any information on how to write a
> plugin to create a wrapper...
> 
> I use Motif, and i have a compiler which use specific user interface
> definition (.xwi) to create Motif (.h and .c) files...
> 
> I would like to have an equivalent to QT_WRAP_CPP for my specific case
> 
> In practice, what i want to do
> 
> toto.xwi -> toto.h toto.c
> 
> 
> before compiling my project and add it to the executable.
> 
> I would like to write something that allow me to write
> 
> ADD_EXECUTABLE( myexee
>                                    ...
>                                   myexe_xwi_files)
> 
> SET( myexe_xwi_def 
>         toto.xwi
>         ...
>        )        
> 
> XWI_WRAP_C ( myexe
>                             myexe_xwi_files
>                             myexe_xwi_def )
> 
> Could someone tell me how to do this ? using the cmCPluginAPI ? 
> Maybe can i make it simplier using the 
> ADD_CUSTOM_COMMAND ?
> 
> Any help would be appreciated !
> 
> Thanks
> 
> Jef


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www . creatis . insa-lyon . fr/~malaterre/