mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
5730711185
This example shows how to use ESP-IDF build system features to build multiple configurations of an app from the same source files. Configurations are set by overriding SDKCONFIG_DEFAULTS variable when invoking idf.py. Related: https://github.com/espressif/esp-idf/issues/5658
11 lines
344 B
CMake
11 lines
344 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
# In this example, sdkconfig file is placed into the build directory.
|
|
# This allows building development and production configs side by side,
|
|
# without having them influence each other.
|
|
set(SDKCONFIG "${CMAKE_BINARY_DIR}/sdkconfig")
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
project(multi_config)
|