Skip to content

Commit

Permalink
enable explicit components requirements specification
Browse files Browse the repository at this point in the history
  • Loading branch information
summivox committed Dec 29, 2021
1 parent ffc8e08 commit b64f978
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 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)

# enable explicit components requirements specification
# comment out if you want to implicitly include all esp-idf components
set(COMPONENTS esptool_py main)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(your-project-name-here)
project(your-project-name-here) # TODO: change to your project name
10 changes: 10 additions & 0 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ set(srcs
# TODO: add new source (.c/.cc/.cpp) files here (best if kept in lexical order)
)

set(requires
# System
spi_flash

# Project
fmtlib
scope_guard
)

idf_component_register(
SRCS ${srcs}
INCLUDE_DIRS "."
REQUIRES ${requires}
)

# compiler flags for the `main` component can be specified here
Expand Down

0 comments on commit b64f978

Please sign in to comment.