[CMake] build executable with custom command?
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Jun 11 14:23:30 EDT 2007
On 6/11/07, Jens.M.Hoffmann at bahn.de <Jens.M.Hoffmann at bahn.de> wrote:
>
>
>
>
>
> > Yup. Should work out of the box.
> >
> > ADD_CUSTOM_COMMAND(
> > OUTPUT /full/path/to/myexe
> > COMMAND buildserver
> > ARGS -o myexe -f myexe.o
> > DEPENDS /full/path/to/myexe.o
> > COMMENT "Generating exe"
> > )
>
> ok, but how do I add myexe to the "all"-target?
cmake --help ADD_CUSTOM_TARGET
Something like:
ADD_CUSTOM_TARGET(dummy
ALL
DEPENDS /full/path/to/myexe
)
HTH
-Mathieu
More information about the CMake
mailing list