Creating and Managing Config-Files

Let's learn about safely generating and installing target export files and writing basic config-files.

Writing basic config-files

A complete package definition consists of the target export files, the package's config-file, and the package's version file, but technically, all that's needed for find_package() to work is a config-file. It's considered a package definition, and it's responsible for providing any package functions and macros, checking requirements, finding dependencies, and including target export files.

As we mentioned earlier, users can install our package anywhere on their system by using the following command:

Get hands-on with 1400+ tech skills courses.