[CMake] Argument passing to shell script through cmake

ankit jain ankitguddu at gmail.com
Thu Mar 26 05:26:15 EDT 2009


2009/3/25 Denis Scherbakov <denis_scherbakov at yahoo.com>

>
> Did you try EXECUTE_PROCESS and ADD_CUSTOM_COMMAND?
>
> Denis
>

I tried execute process it works but hte problem is that it runs at compile
time itself i want that script wil run at build time.

With add_custom_command iam not able to give something in OUTPUT since the
script simply display a message.

Another problem is that  with other add_custom_command wher iam specify
OUTPUT which is something like files then its compulsory to link them with
some target but i simply want to generate it. also unless an until u cant
link to some target and run "make <target_name> add_custom_command willnot
run.

I want to simply run the make command and want to execute teh command but
this OUTPUT as well as linking it with some target really creates a lots of
problem to me..

Is there any way by which if want to simply executes a command it runs on
doing "make" only. add _custom _commadn demands OUTPUT which is not a
problem but the tresult will not come unless u link it with some target and
then built that target for that u have to give "make <target_name>. i just
want to run make...

I hope i make clear my problem...
Let me know how to get rid of it...

Ankit

>
>
> --- On Wed, 3/25/09, ankit jain <ankitguddu at gmail.com> wrote:
>
> > From: ankit jain <ankitguddu at gmail.com>
> > Subject: [CMake] Argument passing to shell script through cmake
> > To: cmake at cmake.org
> > Date: Wednesday, March 25, 2009, 5:54 AM
>  > Hi all,
> >
> > I want to run one shell script which requires some
> > arguments to pass in
> > cmakelists file.
> > Simply using install command to run it does not allow to
> > pass arguments to
> > it.
> >
> > How to do it ....
> >
> > ankit
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090326/bdc9cb71/attachment.htm>


More information about the CMake mailing list