[CMake] Creating executable - including an external *.o
Mateusz Loskot
mateusz at loskot.net
Sun Jul 22 08:16:32 EDT 2012
On 22 July 2012 13:07, Nicholas Yue <yue.nicholas at gmail.com> wrote:
>
> In the add_executable() command, I would like to include that single
> MyGC.o during link time, how does one specify a single object file for
> linking in an executable?
"add_executable may reference the objects using an
expression of the form $<TARGET_OBJECTS:objlib> as a source"
http://cmake.org/cmake/help/v2.8.8/cmake.html
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
More information about the CMake
mailing list