[CMake] Static lib in project
Eric Noulard
eric.noulard at gmail.com
Sun Jan 15 06:54:29 EST 2012
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
)
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
)
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list