[CMake] how to link a test with library in build directory, not with installed version?

Aaron Cohen aaron at assonance.org
Tue May 28 13:28:05 EDT 2019


On Tue, May 28, 2019 at 1:24 PM Aaron Cohen <aaron at assonance.org> wrote:

> b) Arrange that AConfig.cmake is installed to
> /usr/lib/cmake/A/AConfig.cmake, which also exports an A::A target. This is
> the "installed" version of the library, for consumers.
>

I was originally writing a longer answer and forgot to remove this part.
You don't actually need to create/install this file if you are just
concerned with testing within your project. (It's good to do in general,
it's just un-related to your question).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190528/a656cd66/attachment.html>


More information about the CMake mailing list