/
CMakeLists.txt
31 lines (27 loc) · 960 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
# requirements can't depend on config
set(COMPONENT_REQUIRES soc nvs_flash ulp)
register_component()
#
# ULP support additions to component makefile.
#
# 1. ULP_APP_NAME must be unique (if multiple components use ULP)
# Default value, override if necessary:
set(ULP_APP_NAME ulp_${COMPONENT_NAME})
#
# 2. Specify all assembly source files here.
# Files should be placed into a separate directory (in this case, ulp/),
# which should not be added to COMPONENT_SRCS.
set(ULP_S_SOURCES "ulp/ms5611.S"
"ulp/spi.S"
"ulp/stack.S")
#
# 3. List all the component source files which include automatically
# generated ULP export file, $(ULP_APP_NAME).h:
set(ULP_EXP_DEP_SRCS "main.c")
#
# 4. Include build rules for ULP program
# End of ULP support additions to component makefile.
#
include($ENV{IDF_PATH}/components/ulp/component_ulp_common.cmake)