14 lines
262 B
CMake
14 lines
262 B
CMake
set(REQUIRES "")
|
|
set(SRCS "src/configulator.c")
|
|
|
|
if(${ESP_PLATFORM})
|
|
list(APPEND REQUIRES nvs_flash)
|
|
list(APPEND SRCS "src/cfglr_nvs.c")
|
|
endif()
|
|
|
|
idf_component_register(
|
|
SRCS ${SRCS}
|
|
INCLUDE_DIRS "include"
|
|
# if platform esp...
|
|
REQUIRES ${REQUIRES}
|
|
)
|