Re: [CMake] find_package and get_target_property

2018-04-13 Thread CHEVRIER, Marc
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

Re: [CMake] find_package and get_target_property

2018-04-13 Thread Saad Khattak
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

Re: [CMake] find_package and get_target_property

2018-04-13 Thread CHEVRIER, Marc
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.