CMake: Improve dependencies, how output files are managed/cleaned.

I almost think I understand CMake, now. Almost.
This commit is contained in:
Jared Boone
2016-07-03 18:32:50 -07:00
parent 45ca3cf7e6
commit b6fe392512
4 changed files with 61 additions and 31 deletions

View File

@@ -204,3 +204,8 @@ add_custom_command(
COMMAND ${CMAKE_OBJCOPY} -O binary ${PROJECT_NAME}.elf ${PROJECT_NAME}.bin
DEPENDS ${PROJECT_NAME}.elf
)
add_custom_target(
bootstrap
DEPENDS ${PROJECT_NAME}.bin
)