add_custom_command POST_BUILD & GENERATE_HEX

Sysprogs forums Forums VisualGDB add_custom_command POST_BUILD & GENERATE_HEX

This topic contains 1 reply, has 2 voices, and was last updated by  support 1 week, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #33980


    When trying to define post build actions in a CMake build project(using add_custom_command(…) ) we noticed that the commands get executed before the execution of the HEX & BIN file generation as part of the add_bsp_executable(…)

    As part of the POST_BUILD script was meant to copy those files to a holding folder, this doesn’t work as the files don’t exist yet (and if they exist, it’s a previous build version…)

    Is there any way to execute custom commands after <span style=”text-decoration: underline;”>everything</span> VisualGDB does in the build sequence is finished ?




    Sure, you can use VisualGDB Project Properties -> Custom Build Steps to run an arbitrary command after the entire build finishes.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.