[CMake] Static lib in project
Matthias Fulz
mfulz at olznet.de
Sun Jan 15 10:38:12 EST 2012
On Sun, 2012-01-15 at 12:54 +0100, Eric Noulard wrote:
> 2012/1/15 Matthias Fulz <mfulz at olznet.de>:
> > It's working now - just had a typo inside the names.
>
> ok fine.
> Just in case the "link_directories" call
>
> link_directories(
> ${CMAKE_BINARY_DIR}/src/testlib
> )
>
Thank you for this hint, didn't know that I don't this.
is as stated by the documentation "rarely necessary."
> is as stated by the documentation "rarely necessary."
> and surely NOT necessary in your case.
> The target_link_libraries command should makes it
> possible to find the absolute path to the libraries.
>
> This one is OK:
> include_directories(
> ${CMAKE_SOURCE_DIR}/src/testlib
> )
>
>
Yes without that one, my programs weren't able to find
the headers without using full / relative paths.
Thank you
-------------- 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/20120115/023ab32e/attachment.pgp>
More information about the CMake
mailing list