[Cmake] Custom Commands
Kevin Wright
krw at viz-solutions.com
Wed May 15 18:45:25 EDT 2002
>Kevin,
>
> > What I'm doing is:
> >
> > ADD_CUSTOM_TARGET -> creates gensrc.cxx
> > SET_SOURCE_FILE_PROPERTIES(gensrc.cxx GENERATED)
> > SOURCE_FILES( FILES ... gensrc)
> > ADD_LIBRARY(libname FILES)
>
>Try modifying your SOURCE_FILES command to refer to the file as
>"gensrc.cxx" instead of "gensrc". I'm pretty sure this stuff works if
>used correctly, because I just used it recently in a small dummy project.
Thanks Brad, I put the SET_SOURCE_FILE_PROPERTIES after the SOURCE_FILES
and added the .cpp extension to both and it seems to work fine.
Thanks for everyone's help.
Kevin.
More information about the CMake
mailing list