Michael Biebl wrote:
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.

In CMake 2.x you can use the POST_INSTALL_SCRIPT property on a target. See the documentation of the SET_TARGET_PROPERTIES command. In CVS CMake you can use the INSTALL command's SCRIPT mode.

-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to