mirror of
https://github.com/espressif/esp-idf-template.git
synced 2025-10-09 20:01:00 +00:00
Fix CMake example, main should be treated as component
This commit is contained in:
@@ -2,7 +2,5 @@
|
|||||||
# CMakeLists in this exact order for cmake to work correctly
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
set(MAIN_SRCS main/main.c)
|
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
project(app-template)
|
project(app-template)
|
||||||
|
8
main/CMakeLists.txt
Normal file
8
main/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Edit following two lines to set component requirements (see docs)
|
||||||
|
set(COMPONENT_REQUIRES )
|
||||||
|
set(COMPONENT_PRIV_REQUIRES )
|
||||||
|
|
||||||
|
set(COMPONENT_SRCS "main.c")
|
||||||
|
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||||
|
|
||||||
|
register_component()
|
Reference in New Issue
Block a user