-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
CMake has built-in utilities that can go a long way when it comes to distributing the results of your builds. This section will describe installing and exporting utilities, explain the differences between them, and show how to package your code using CPack.
Installing and exporting are not that important for microservices per se, but very useful if you’re delivering libraries for others to reuse.
If you have written or used Makefiles, you’ve most probably invoked make install at one point and seen how the deliverables of a project were installed either in the OS directories or in another directory of your choosing. If you’re using make with CMake, using the steps from this section will allow you to install the deliverables in the same way. If not, you’ll still be able to call the install target, of course. Aside from that, in both cases, you will then have an easy way to leverage CPack for creating packages based...