Skip to content

Instantly share code, notes, and snippets.

@SaurabhSangpal
Created October 27, 2019 15:47
Show Gist options
  • Save SaurabhSangpal/839f2c25ce8b4bb5f2d5dad00ad93b25 to your computer and use it in GitHub Desktop.
Save SaurabhSangpal/839f2c25ce8b4bb5f2d5dad00ad93b25 to your computer and use it in GitHub Desktop.
Copy dll to binary folder
ADD_CUSTOM_COMMAND(TARGET PROJECT_NAME POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${DLL_FILE}" $<TARGET_FILE_DIR:PROJECT_NAME>)
# Note that this must be run after a target has been created, i.e., after running add_executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment