Created
October 27, 2019 15:47
-
-
Save SaurabhSangpal/839f2c25ce8b4bb5f2d5dad00ad93b25 to your computer and use it in GitHub Desktop.
Copy dll to binary folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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