[CMake] Static lib in project

Matthias Fulz mfulz at olznet.de
Sat Jan 14 17:10:04 EST 2012


Hi,

could anybody give me a hint or an example on how to
use a static lib inside a project?

I need to create a static lib, which is only used inside
a project for different executables.

Let's say a project like the following:

src
  static_lib
    lib.cpp
    lib.hpp
  executable1
    main.cpp
  executable2
    main.cpp

The lib should be static and used only inside this project.

I hope I could make it clear :)

Thanks and best regards,

Matthias



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120114/ae899af1/attachment.pgp>


More information about the CMake mailing list