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

Ted Kord teddy.kord at gmail.com
Sun Nov 14 08:13:01 EST 2010


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)

set(CMAKE_CXX_FLAGS ".......   foo.o")

target_link_libraries(....   foo.o)

Is there a way to do this?

Ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101114/1bf59974/attachment.htm>


More information about the CMake mailing list