[CMake] how to replace text in generated files

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 21 16:31:22 EST 2005


> Hi Alex, 
>  
> What you can do is to write a cmake script that does what you want it 
to 
> do. Then you call it during build stage using: 
>  
> ADD_CUSTOM_COMMAND(... 
> ... 
> ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/my_fancy_script.cmake 
> ...) 
>  
>        Andy 
 
Works ! :-) 
Using -DSOME_VAR:STRING="blah" I can feed the filenames into the extra 
script files :-) 
Did I mention that cmake rules ? 
 
Bye 
Alex 
 
P.S. the -P option doesn't appear in the man-page 
 

-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl


More information about the CMake mailing list