cmake: Refactor main cmake project logic

This commit is contained in:
Angus Gratton
2018-01-17 14:01:57 +11:00
committed by Angus Gratton
parent 7f29593a7d
commit 134f2238bd
6 changed files with 74 additions and 55 deletions
@@ -12,7 +12,7 @@ if(NOT SDKCONFIG)
message(FATAL_ERROR "Bootloader subproject expects the SDKCONFIG variable to be passed in by the app build process.")
endif()
include($ENV{IDF_PATH}/idf.cmake)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_executable(bootloader.elf
main/bootloader_start.c