[CMake] How to Link in an Object file in Cmake

Alexander Neundorf a.neundorf-work at gmx.net
Sun Nov 14 08:18:27 EST 2010


On Sunday 14 November 2010, Ted Kord wrote:
> Hello
>
> I have an object file which I'd like to link in during compilation of my
> executable. I've tried adding it to each of the commands below with no
> success for any:
>
> add_executable(....  foo.o)

This should work.
What error did you get ?

Alex


More information about the CMake mailing list