[CMake] Add pre-existing object file to linker line?
Trevor Kellaway
tkellaway at asl-electronics.co.uk
Sat May 26 09:41:37 EDT 2007
Hi,
Does anyone know how to add an explicit reference to a pre-existing
object file (no related source file) to the link?
I've tried:
ADD_EXECUTABLE(myapp mysrc1.c mysrc2. myexisiting.o)
If I perform the above CMake complains it doesn't know how to build
myexisiting.o.
FYI, my myexisiting.o is an embedded compiler's startup code that is
delivered as a pre-built object.
- TrevK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070526/bee85904/attachment.html
More information about the CMake
mailing list