15:02
To: "CHEVRIER, Marc" <marc.chevr...@sap.com>
Subject: Re: [CMake] find_package and get_target_property
Ah I see. In this case, the Libraries I'm depending on are generated, built and
installed using CMake. I'm hoping that CMake is able to generate the
Find.cmake for me with the approp
Thanks Marc. I assume you mean the library does not export its targets
properly? Something like this:
# https://cmake.org/Wiki/CMake/Tutorials/Exporting_and_Importing_Targets
install(TARGETS generator DESTINATION lib/myproj/generators EXPORT
myproj-targets)
install(EXPORT myproj-targets
The creation of “imported” target is the responsibility of the package. May be
the package “LibA” does not create a such target.
In this case, you have to rely on variables (like LibA_LIBRARIES and so on…).
The documentation of the package, if any, generally describe how to use the
package.