[CMake] Linking unit tests
Erik Johansson
erik at ejohansson.se
Thu Dec 13 16:46:56 EST 2007
2007/12/12, Marcus <yhadin002 at sneakemail.com>:
> In the past (when I was using SCons) I compiled the source files into
> object files, and then linked the same object files into both the test
> executable and the shared library. Is it possible to do this with CMake?
As far as I know there's no official support in cmake for this. But I
had the same problem not long ago and here is how I've done it:
http://trac.licq.org/browser/branches/newapi/licq/src/CMakeLists.txt
Hope that helps.
// Erik
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
More information about the CMake
mailing list