[Cmake] separate compiling and linking
Iker Arizmendi
iker at research.att.com
Tue, 27 Apr 2004 11:33:54 -0400
How does one create the .o files to
begin with? Is there a separate command like
ADD_OBJECT(source.o source.cpp)
that I can use to generate object files
portably? Or is there a need to create a
"dummy" target (a library or exe) that will
generate them?
Iker
William A. Hoffman wrote:
> As long as you made sure to use the ADD_DEPENDENCY command between
> libraries, it should work. You may want to try it with cvs cmake and
> let us know if it does work.
>
>
> -Bill
>
>
> At 10:15 PM 4/26/2004, Iker Arizmendi wrote:
>
>>Sorry, what I meant to ask is how would this
>>feature be used? If its something like so:
>>
>> ADD_LIBRARY(mylib source1.cpp source2.o)
>>
>>that still leaves open the question of how to
>>generate source2.o. Wouldn't this require
>>additional keyword support to generate
>>standalone object files?
>>
>>Iker
>>
>>
>>William A. Hoffman wrote:
>>
>>>>P.S.
>>>>What's the syntax for adding .o files under
>>>>CVS Cmake?
>>>
>>>Same as adding a .c or .cpp file.
>>>
>>>-Bill
>>
>>--
>>Iker Arizmendi
>>AT&T Labs - Research
>>Speech and Image Processing Lab
>>e: iker at research.att.com
>>w: http://research.att.com
>>
>
>
>