cmake: make main a component again

This commit is contained in:
Renz Bagaporo
2018-09-13 08:52:32 +08:00
parent 8e20c13348
commit 7edf2bf66c
241 changed files with 1492 additions and 623 deletions

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS main/adc1_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(adc)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "adc1_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()