add system packages

This commit is contained in:
Thom Troy
2019-03-31 22:27:53 +01:00
parent c5199ccf3d
commit 2ce380d011

View File

@@ -0,0 +1,14 @@
= Using System Provided Package Manager
:toc:
:toc-placement!:
toc::[]
# Introduction
Using your system provided packages is one of the oldest and most common form of package management solutions. For this, you use your systems package installer (e.g. apt, yum) to install libraries and headers into common locations. CMake can then use the `find_package()` function to search for these and make them available to your program.
# Examples
I have already show how to do this in the link:https://github.com/ttroy50/cmake-examples/tree/master/01-basic/H-third-party-library[third party libray] example from the basic section and the link:https://github.com/ttroy50/cmake-examples/tree/master/05-unit-testing/boost[boost unit test] example.