On 22 July 2012 13:07, Nicholas Yue <[email protected]> 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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
