mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 03:52:01 +02:00
cmake: make main a component again
This commit is contained in:
committed by
Angus Gratton
parent
f9bed53ea2
commit
d9939cedd9
@@ -1,9 +1,7 @@
|
||||
# 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/tests.c main/main.c)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(tests)
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "main.c"
|
||||
"tests.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ". include")
|
||||
|
||||
register_component()
|
||||
Reference in New Issue
Block a user