123456789101112131415161718192021222324252627282930 |
- # This is the project CMakeLists.txt file for the test subproject
- cmake_minimum_required(VERSION 3.5)
- set(CMAKE_CXX_STANDARD 17)
- # Include the components directory of the main application:
- #
- set(EXTRA_COMPONENT_DIRS "..")
- # Set the components to include the tests for.
- # This can be overridden from CMake cache:
- # - when invoking CMake directly: cmake -D TEST_COMPONENTS="xxxxx" ..
- # - when using idf.py: idf.py -T xxxxx build
- #
- set(TEST_COMPONENTS "kbf" CACHE STRING "List of components to test")
- # hax to avoid circular dependency with CLion + still build nicely with idf.py
- # set in root CMakeLists.txt: set(SKIP_IDF 1)
- #if (SKIP_IDF)
- # message("skipping include esp-idf")
- #else()
- # message("including esp-idf")
- # include($ENV{IDF_PATH}/tools/cmake/project.cmake)
- #endif()
- include($ENV{IDF_PATH}/tools/cmake/project.cmake)
- set(EXTRA_COMPONENT_DIRS "../../" "../lib/esp-idf-lib/components/")
- project(kbf)
|