[CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
. Many thanks for any hint, Nick Gnedin -- 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

Re: [CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
for code, so they end up included twice. On 04/22/2013 01:50 PM, Jean-Christophe Fillion-Robin wrote: Hi Nick, What about creating a static library that would be linked against both the executable and the library ? Hth Jc On Mon, Apr 22, 2013 at 2:45 PM, Nick Gnedin ngne...@gmail.com

Re: [CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
it. (Assuming a release build, where the linker leaves out what it doesn't need...) -Original Message- From: Nick Gnedin ngne...@gmail.com Cc: CMake ML cmake@cmake.org Sent: Mon, Apr 22, 2013 2:55 pm Subject: Re: [CMake] Sharing sources between two targets That doubles the size