[CMake] Assembly code

Brandon J. Van Every bvanevery at gmail.com
Sat Sep 16 20:21:54 EDT 2006


Nathan A. Smith wrote:
> On Sat, 2006-09-16 at 16:38 -0700, Brandon J. Van Every wrote:
>   
>> Nathan A. Smith wrote:
>>     
>>> Hi,
>>>
>>> I was wondering if it's possible to have cmake assemble assembly code
>>> (*.s) -- and if so how?  I tried something like this:
>>>   
>>>       
>> You would use an ADD_CUSTOM_COMMAND.
>>     
> Ok,
>
> Maybe I am stupid...  Could you explain (or maybe a simple example)?
>
>   

You are not stupid, but you do need to spend time reading the CMake 
documentation.  It is, after all, the 1st command in the docs.  Not the 
1st thing in the docs, but it is the 1st command.

The tutorials on the CMake wiki may be helpful as well; I don't know 
because I've never personally used them.  We'd be interested on your 
feedback as to whether they're useful or need improvement.

My CMakeLists.txt for the Chicken Scheme project has lots of examples of 
ADD_CUSTOM_COMMAND to drive a language (Scheme) that is not C/C++.  That 
might be useful to you.  A development snapshot is available at
http://www.call-with-current-continuation.org/index.html  If it doesn't 
build for you - and I suspect that likely, as we've fixed a number of 
bugs since that snapshot - e-mail me if you want a more current 
distribution.

Finally, you can search the archives of this mailing list using Google.  
First go to Google's Advanced Search:
http://www.google.com/advanced_search?hl=en
and then search the following domain for whatever you're interested in:
http://public.kitware.com/pipermail/cmake/
It would be nice if the CMake mailing list archives already had a search 
button set up.


Cheers,
Brandon Van Every

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060916/0fbe1a20/attachment.htm


More information about the CMake mailing list