Issue
I'm currently porting a project to CMake which depends on a bunch of third-party libraries, none of which supports CMake. So far the project compiles well but I need to link the executable to those third-party libraries. Does CMake offer any way to create a build target that, once added as a link target, enables the project to link to all third-party libraries?
Solution
The right way of ingesting third-party libraries that don't provide their own CMake config modules is to write your own custom find modules for each package, and each find module specifies the set of libraries to be used as IMPORTED
targets.
Reference:
Answered By - RAM Answer Checked By - Mildred Charles (WPSolving Admin)