-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to invoke bin2hex #7
Comments
Edit: # CMakeLists.txt
add_executable(${PROJECT_NAME}.elf ...)
bin2hex(${PROJECT_NAME}.elf) Was using a custom command before and this worked too: add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD
COMMAND ${MICROCHIP_XC32_PATH}/bin/xc32-bin2hex $<TARGET_FILE:${PROJECT_NAME}.elf>) |
Hey, I get the error target was not created in this directory. In which CMakeLists.txt should I add this command? Actually it is in my top level CMakeLists.txt. Best |
The target needs to be created before invoking # CMakeLists.txt
# first
add_executable(${TARGET_NAME} ........)
# then
bin2hex(${TARGET_NAME}) |
I started playing w/ this as we would like to switch our builds to cmake eventually. Quick question, I see that there is "support" for calling bin2hex... what I'm unsure of is how to invoke it following a build? Is there a directive I need to add to the toplevel CMakeLists.txt file?
The text was updated successfully, but these errors were encountered: