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
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.5)
set(CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH}/toolchain.cmake)
project(idf_project ASM C CXX)
include($ENV{IDF_PATH}/idf.cmake)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_executable(hello_world.elf
main/hello_world_main.c)