Commit Graph

4 Commits

Author SHA1 Message Date
Sergey Rachev
6f6613af40 - workaround for CMake < 3.18 ALIAS target limitation to not point to non-GLOBAL IMPORTED target 2021-04-02 22:36:56 +02:00
Sergey Rachev
cfb9120d86 - empty line at end of file 2021-04-02 22:36:56 +02:00
Sergey Rachev
6a076e35ab - declare namespaced export target to simplify the library usage
When the static libary is available use it as exported alias, otherwise use shared library. Cmake takes care about import library when Windows platform DLL is used
2021-04-02 22:36:56 +02:00
Sergey Rachev
0402378acc - exported targets go to separate generated file and package config file generated from template to use automatic package resolving and resolution logic
CMake  provides helpers to generate config file. Generated config file has usefull macro check_required_components() to set necessary variables like PackageName_FOUND if requirements has been satisfied. An absence of dedicated config file confuses user project as necessary variables are not set.
2021-04-02 22:36:56 +02:00