Re: [CMake] Find Module, add_library shared and static : standard ?

2015-04-13 Thread Stephen Kelly
r2d2leb...@voila.fr wrote: > Hi, > > I need to write a FindModule which search static and shared version of my > lib. If it is your library, then you provide a Config.cmake file, not a FindModule: http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html > I would like to know what

[CMake] Find Module, add_library shared and static : standard ?

2015-04-13 Thread r2d2leboss
Hi, I need to write a FindModule which search static and shared version of my lib. I need both on my project (there is a diff between static and dynamic lib). I would like to import my lib using add_library : add_library(Foo::MyLib STATIC IMPORTED) add_library(Foo::MyLib SHARED IMPORTED) This