cmake run script for install target?
<p>I have a project where "installing" the code is not quite as simple as just copying some files. With a traditional Makefile, I would just create a <code>make install</code> target that runs a series of shell commands to do what I need.</p>

<p>But googling around has resulting in no examples of this (some things close, but not quite... i think). So basically, I want a custom command, that depends on the target executables, but produces nothing and runs a script that need not be portable to accomplish the "install"</p>

<p>Anyone have any examples of something like this?</p>