CMakeLists.txt 490 B

12345678910111213
  1. # The following lines of boilerplate have to be in your project's CMakeLists
  2. # in this exact order for cmake to work correctly
  3. cmake_minimum_required(VERSION 3.16)
  4. set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
  5. if(${IDF_TARGET} STREQUAL "linux")
  6. list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/protocols/linux_stubs/esp_stubs")
  7. set(COMPONENTS main)
  8. endif()
  9. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  10. project(simple)