I need to be able to run a command after a target is created, every time
the target is created.  I need this to happen regardless of the command
line.

For example, for Makefile generators if someone runs "make myTarget"
directly (if myTarget is a program for example) I still need this
command to be run; similarly for MSVC requesting a particular build
target.

I have my cmake files set up now to use a target created with
add_custom_command() / add_custom_target() with ALL DEPENDS so that if
someone runs plain "make" or the default MSVC target, then the command
will always be run afterward.  But this doesn't help me when people
build these specific targets.


For example, is it possible to modify the standard build target rule to
add extra commands, in cmake?

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to