[CMake] Custom command : generate a cxx file wich need to be compile after

Xavier Larrode Xavier.Larrode at irisa.fr
Wed Aug 30 10:47:54 EDT 2006


Actually i don't have the sources of the generator, it's another library 
wich is doing that, so i can't make a new target.
SO i did an EXEC_PROGRAM to generate it before scanning files, but i 
don't know how to generate it after a make clean wich have to erase it.
Any idea ?

Filipe Sousa a écrit :
> Xavier Larrode wrote:
>   
>> Hi all,
>> i have a custom_command wich is generating a cxxfile, and i need after 
>> to compile it with all files of my project.
>> But actually, the configuration step (ie cmake .) is telling me that the 
>> file is not existing, wish is true as my command is making it in PRE-BUILD.
>>
>> And i want that any make clean , delete it.
>>
>> Any idea how i can do that ??
>>     
>
> http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_generate_a_source_file_during_the_build.3F
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xavier.Larrode.vcf
Type: text/x-vcard
Size: 169 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060830/06c51b58/Xavier.Larrode-0001.vcf


More information about the CMake mailing list