Hi

I am looking for a way to chain two custom commands added to a target.

To be more precise I am trying to use objdump + objcopy to add a section to a target if it does not already exist - if objdump -h outputs the header to be added then objcopy is not performed - but if it does not output the header to be added then objcopy is done.

Using plain gnu makefiles this is done with objdump ... | grep <header>; if [failed]; then objcopy ...embedheader...; fi;

Is there a way to do this with cmake except for using /bin/sh -c '...'?

regards
_______________________________________________
Powered by www.kitware.com

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

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

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

Reply via email to