[CMake] Output assembly (g++ -S)

2012-10-18 Thread David Doria
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 I tried to

Re: [CMake] Output assembly (g++ -S)

2012-10-18 Thread Bill Hoffman
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

Re: [CMake] Output assembly (g++ -S)

2012-10-18 Thread David Doria
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 Ah, so easy. Thanks Bill! David -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] Output assembly (g++ -S)

2012-10-18 Thread Tim Gallagher
Hoffman bill.hoff...@kitware.com To: cmake@cmake.org Sent: Thursday, October 18, 2012 10:20:58 PM Subject: Re: [CMake] Output assembly (g++ -S) 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