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