Creating distribution packages with CMake
CMake can automatically create packages for several distributions (e.g. Redhat/Fedora .rpm, Debian/Ubuntu .deb, etc), though the created packages will lack dependency information. To create these packages, add at the end of CMakeLists.txt:
Modify the variables to create an package with the appropriate name and metadata fields. After building the package, run:
1 make package
CMake, CPack, and Windows
Example of using WIX and CPack: https://cmaketools.codeplex.com/SourceControl/latest#CMakeLists.txt
Installing the MS Visual Studio runtime dependencies w/ WiX:http://stackoverflow.com/questions/34592378/redistributables-for-deploying-c-exe-developed-with-visual-studio-2015-on-wind
Modern CMake: presentation.
Create dlls on Windows without declspec() using new CMake export all feature: have CMake already export symbols for DLLs. https://gcc.gnu.org/wiki/Visibility provides an alternative.
CMakeModularizationStatus – Boost C++ Libraries: Building Boost w/ CMake
nerdvegas/vfxcmake: Cmake Find modules for common vfx software, and general Cmake utility code: Modules for finding Nuke's SDK, Arnold, Houdini, OpenEXR, etc.