mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
cmake: make main a component again
This commit is contained in:

committed by
Angus Gratton

parent
f9bed53ea2
commit
d9939cedd9
@@ -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/exception_example_main.cpp)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(cpp_exceptions_example)
|
||||
project(console)
|
||||
|
4
examples/system/cpp_exceptions/main/CMakeLists.txt
Normal file
4
examples/system/cpp_exceptions/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "exception_example_main.cpp")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
Reference in New Issue
Block a user