Workflow/tools for installing command line application on OS X (Yosemite or later)
The standard package format is the "pkg" format. It's not often used for applications, but it's fine for a terminal-only utility.


My go-to tool for creating packages is called Packages.
I haven't used it myself, but it looks like CMake supports PackageMaker, which is a third party tool for creating OS X packages.
There's also the built-in pkgbuild utility. 


Just make sure you don't touch anything outside the standard paths (/Library, /Applications, or /usr/local/) and you'll be fine.