How to install and create <Name>Config.cmake files
To export a CMake Project as a thrid-party library which can be included using find_package()
the install command can be used.
-
Example how to set up a proper install command -
How to generate a <Project>Config.cmake
file (probably using CMakePackageConfigHelpers)