Closed lyrahgames closed 5 years ago
The CMake package installation and exportation is implemented and tested by CircleCI. But it should still be tested with Windows and MacOS. It is also possible to uninstall the library. Additionally, I have added the installation of a pkgconfig-file.
In general there should be three ways to use a CMake project inside another project.
find_package
together withtarget_link_libraries
for system-wide installed packagesExternalProject_Add
with some extra stuff for frequently changing lightweight projects with lots of different versions that do not have to use CMaketarget_link_libraries
in the build-treeIn my opinion a project should always make sure that every option is possible. For now, I have implemented the first approach. The third one should be easy. I have not tested the second one. We should even consider to test every possibility with our CI environment.
There should be even a possibility to create packages with different components for linux package managers. I think 'CPack' should be one of the tools we have to think about.