-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Biebl wrote: > 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?
You can either use SET_TARGET_PROPERTIES or INSTALL(SCRIPT) (cvs only) http://public.kitware.com/cgi-bin/viewcvs.cgi/Tests/SimpleInstall/CMakeLists.txt?rev=1.51&root=CMake&view=markup - -- Filipe Sousa -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEPBDjbQdNYqwwwCwRAsrBAJ95hk3lmrDw5NKT7v+eAE/KDtu0uACgiCOS 7hf36FJQLOIoe8910aZHzB4= =fQPS -----END PGP SIGNATURE----- _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
