-
Book Overview & Buying
-
Table Of Contents
Minimal CMake
By :
CPack is a separate application from CMake (very much like CTest). It comes bundled with CMake and can be run by executing cpack from the Terminal. The best way to think of CPack is a tool to create a wrapper around CMake install commands. In Chapter 8, Using Super Builds to Simplify Onboarding, we followed the process of creating install commands for our application, meaning we’ve already done the work necessary to make packaging our application possible. What CPack does is handle platform-specific conventions when it comes to installing software, and it does a respectable job of abstracting things so that you don’t have to worry about them.
The advantage of packaging things at all is to save our users from having to build our software themselves. The topics we’ve previously covered relating to running an application from the install tree (the app/install/bin folder), copying DLLs to the right folder on Windows, and library search paths...