2007/12/12, Marcus <[EMAIL PROTECTED]>: > 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 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake