[CMake] Output assembly (g++ -S)
    Bill Hoffman 
    bill.hoffman at kitware.com
       
    Thu Oct 18 22:20:58 EDT 2012
    
    
  
On 10/18/2012 9:47 PM, David Doria wrote:
> I am trying to produce the .s file that "g++ -S file.cpp" would
> produce, but on a CMake target (because I want the include path that
> I've setup through CMake, etc.)
>
> Consider a simple demo:
>
> PROJECT(Assembly)
> ADD_EXECUTABLE(Assembly Assembly.cpp ) # this produces an 'Assembly' executable
CMake has targets to do that.  If you type make help you can see them. 
It should be something like this:
make Assembly.s
-Bill
    
    
More information about the CMake
mailing list