def METHOD_NAME(self):
    # TODO: CMake imported targets shouldn't be namespaced (waiting implementation of https://github.com/conan-io/conan/issues/7615)
    if self.options.c_api:
        self.cpp_info.components["msgpackc"].names["cmake_find_package"] = "msgpackc"
        self.cpp_info.components["msgpackc"].names["cmake_find_package_multi"] = "msgpackc"
        self.cpp_info.components["msgpackc"].libs = tools.collect_libs(self)
    if self.options.cpp_api:
        self.cpp_info.components["msgpackc-cxx"].names["cmake_find_package"] = "msgpackc-cxx"
        self.cpp_info.components["msgpackc-cxx"].names["cmake_find_package_multi"] = "msgpackc-cxx"
        if self.options.with_boost:
            self.cpp_info.components["msgpackc-cxx"].defines = ["MSGPACK_USE_BOOST"]
            self.cpp_info.components["msgpackc-cxx"].requires = ["boost::boost"]