Skip to content

Instantly share code, notes, and snippets.

@Jason0214
Created February 9, 2019 23:21
Show Gist options
  • Save Jason0214/5bb2e6384885cf4f6563a8a8951e247d to your computer and use it in GitHub Desktop.
Save Jason0214/5bb2e6384885cf4f6563a8a8951e247d to your computer and use it in GitHub Desktop.
Call install after make
add_custom_command(
    TARGET foo
    POST_BUILD
    COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/foo --target install
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment