[CMake] equivalent cmakelist for this file

Bill Hoffman bill.hoffman at kitware.com
Mon Feb 2 09:47:57 EST 2009


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


More information about the CMake mailing list