Re: [CMake] find_package(), FindXXX.cmake and IMPORTED add_library()

2017-07-03 Thread Louis-Paul CORDIER
(My answers to your previous email are below this new question.) I have another question thus: some libraries, especially on Windows, provide both static and shared library. Is there any way for selecting which kind of library we want to get? For instance: LibJPEGTurbo has (turbojpeg.lib +

Re: [CMake] find_package(), FindXXX.cmake and IMPORTED add_library()

2017-07-01 Thread P F via CMake
> On Jun 30, 2017, at 6:40 AM, Louis-Paul CORDIER > wrote: > > Hi, > > I'm particularly familiar with find_package() command, add_library(... > IMPORTED) and find_library(). However, I found there are many differences on > find_package() usage depending of the

[CMake] find_package(), FindXXX.cmake and IMPORTED add_library()

2017-06-30 Thread Louis-Paul CORDIER
Hi, I'm particularly familiar with find_package() command, add_library(... IMPORTED) and find_library(). However, I found there are many differences on find_package() usage depending of the library being imported. For instance, using find_package() on Qt5 will retrieve a bunch of