[CMake] Run commands after "make install"

Michael Biebl mbiebl at gmail.com
Tue Apr 11 16:12:23 EDT 2006


Hi,

after a successfull "make install" run I want to display some messages
and execute a command. With automake I used a install-data-hook in the
toplevel Makefile.am for this, so the commands were processed at the
end of the install run.
How can I do this with cmake? I tried to add a custom target which
executes this commands and used ADD_DEPENDENCIES(install
post_install). But this does not work as install is not recognized as
a target.

 Any ideas?

Michael


More information about the CMake mailing list