[CMake] Fwd: equivalent cmakelist for this file

ankit jain ankitguddu at gmail.com
Mon Feb 2 23:31:34 EST 2009


---------- Forwarded message ----------
From: ankit jain <ankitguddu at gmail.com>
Date: 2009/2/2
Subject: Re: [CMake] equivalent cmakelist for this file
To: Bill Hoffman <bill.hoffman at kitware.com>




2009/2/2 Bill Hoffman <bill.hoffman at kitware.com>

 ankit jain wrote:
>
>> The objective here to include all the .desc files in the cmakelist and
>> when we make it it should generate the executable for it like if we include
>> abc.desc then after make it should generate a file abc which is executable
>> and a script which has test cases but generated by .desc file only. In order
>> to achieve that guide me how to write cmake list file for it so that it wiil
>> produce equivalent behaviour as normal make does using unix makefiles.
>>  When we make to the unix makefiles it is generating the equivalent
>> executable mentioned inthat .desc file.
>>  I want to achieve that through Cmakelist files.
>>
>>
>
> I am still not really sure what is in a .desc file.  Please restate your
> problem as if the .desc file did not exist.
>
> Something like:
>
> I want a cmakelists file that does this:
>
> 1. ...
> 2. ...
>
>
> Basically describe the functionality you want without describing the
> current makefile implementation of that functionality.  The currently
> implementation is most likely irrelevant to the cmake solution to the
> problem.
>
> -Bill
>
Actually these .desc file contain only one line as:
$exec_string = "./abc"

This abc contain shell script code.
Actually the cmakelist file should do:
1. this functionality to create ./abc this file should generate after
running make.

since this line is written in desc files thats why i write this to you.

You tell me how to create that using cmakelist file.

Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090203/144e1620/attachment.htm>


More information about the CMake mailing list