-
Type:
Improvement
-
Resolution: Works as Designed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: Build
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Research CMake's configure_package_config_file() function and use it to generate these CMake config files:
- libbson-static-1.0-config.cmake
- libbson-static-1.0-config-version.cmake
- libbson-1.0-config.cmake
- libbson-1.0-config-version.cmake
- libmongoc-static-1.0-config.cmake
- libmongoc-static-1.0-config-version.cmake
- libmongoc-1.0-config.cmake
- libmongoc-1.0-config-version.cmake
These files are used by other projects that want to link to libbson and libmongoc. These are a lot like the .pc files used by pkg-config to configure include paths, library dependencies, etc., for projects that want to use libbson and libmongoc.
CMake makes it easy to generate these files but we couldn't use CMake's full automation so long as we also had to generate these files using the Autotools.