[CMake] find_package config and install

Lars laasunde at hotmail.com
Mon Jan 21 06:09:06 EST 2019


Hello,

We are creating a foo-config.cmake file for a package. The 'foo' package contain a dynamic library that provides two interfaces and a number of configuration files. There is a mapping between an interface and required configuration files. What is the recommended approach for installing targets and necessary configuration files in this context? Should this be performed by foo-config.cmake or system that performed find_package? If foo-config.cmake should perform the install, how should it be informed of which interface is required? Can the "components" tag be used for this task?

Qt 5.11 support config mode but does not perform any install. Does anyone know why?

We are using CMake 3.13.2

kind regards, Lars

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190121/f411e370/attachment.html>


More information about the CMake mailing list