CMake: how to properly distribuite CMake based libraries that will not be installed
It's said that library authors should ship their library with a config-file instead of a plain find-module. Basically config-file are to be installed with the associated library on the system and can be used transparently by the user, whereas find-module is written by the user by his own when he finds out that the library hasn't any config-file.
But, what if I'm sure that my library will never be installed? I'm doing embedded system development on bare metal and it doesn't make much sense to install my static libraries on the system. Different modules are organized as static libraries and handled by each project with git submodules. They are placed in a directory like third-party
.
Is there any way I can use config-files even in this scenario?