[CMake] POST_BUILD & ALL_BUILD

Christopher Piekarski polo1065 at gmail.com
Mon Mar 5 20:34:35 EST 2012


Hello All,

I am trying to attach a custom POST_BUILD command to the ALL_BUILD target.
I've tried adding the following at the bottom of my root CMakeLists.txt
file but the Post Event never shows up in Visual Studio. I have been able
to get it to work for sub projects, just not ALL_BUILD. Has anyone gotten
this to work?

add_custom_command(TARGET ALL_BUILD
POST_BUILD
COMMAND "python27.exe brand.py"
COMMENT "Branding VS debug build"
)

Many thanks,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120305/7c663e56/attachment.htm>


More information about the CMake mailing list