CMakeLists.txt 883 B

123456789101112131415161718192021
  1. # For more information about build system see
  2. # https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
  3. # The following five lines of boilerplate have to be in your project's
  4. # CMakeLists in this exact order for cmake to work correctly
  5. cmake_minimum_required(VERSION 3.5)
  6. execute_process(COMMAND cat ../device_id OUTPUT_VARIABLE DEVICE_ID)
  7. if (NOT DEFINED DEVICE_ID OR "${DEVICE_ID}" STREQUAL "")
  8. message(FATAL_ERROR "no device ID found, please run ./scripts/get_next_id.sh")
  9. endif()
  10. message("using device ID \"${DEVICE_ID}\"")
  11. add_compile_definitions(DK_DEVICE_ID="${DEVICE_ID}")
  12. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  13. set(EXTRA_COMPONENT_DIRS "components/kbf/lib/esp-idf-lib/components/")
  14. set(CMAKE_CXX_STANDARD 17)
  15. project(doorkeeper_dev)
  16. set(SKIP_IDF 1) # avoid circular dependency in CLion
  17. #add_subdirectory(components/dk/test_app)