[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

[CMake] "Emulate" a package result (find_package)

2015-03-28 Thread r2d2leboss
Hi, We develop a library that we will call LIBRARY. To compile this library, we use CMake (of course :) ). This library include multiple components, like Boost system, i.e. there are few add_library commands. This library produce LIBRARY_COMPONENTS_1, LIBRARY_COMPONENTS_2, LIBRARY_COMPONENTS_3

[CMake] "Emulate" a package result (find_package)

2015-03-28 Thread r2d2leboss
Hi, We develop a library that we will call LIBRARY. To compile this library, we use CMake (of course :) ). This library include multiple components, like Boost system, i.e. there are few add_library commands. This library produce LIBRARY_COMPONENTS_1, LIBRARY_COMPONENTS_2, LIBRARY_COMPONENTS_3