How to convert cmake config file into pkg-config file.
Hi devs. I'm trying to make a cpp project that uses libtorch (C++ distributions of pytorch) using meson build. My project has one simple cpp file of about 50 lines that runs deep learning on images.
However, libtorch only provides TorchConfig.cmake file. In addition, TorchConfig.cmake file is more complicated than I thought, so it looks difficult to make it manually with the pkg-config file. (TorchConfig.cmake file references many cmake files in libtorch directories.)
So, is there a way to utilize the cmake config file to write a pkg-config file? Any comments or suggestions would be appreciated.
operating system: Ubuntu 18.04 cmake version: 3.22.1 libtorch version: 1.8.0