How to add a specific .o file generated (with cmake)

Alexander Neundorf neundorf at kde.org
Wed Oct 18 17:58:57 CEST 2006


On Wednesday 18 October 2006 17:42, Laurent Montel wrote:
> Hi,
> Into kalzium we generate a .o file.
> We want to link it with kalzium binary.
>
> How is it possible to specify a obj file when we want to create a binary ?
> (obj file is a C file)

Can you please explain a bit more ? It sounds a bit like a hack.

It should be possible to add the object file with the full path either to the 
sources or using target_link_libraries(). I never did that, but I can vaguely 
remember some message on the mailing list already quite long ago.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list