CMakeLists.txt 923 B

123456789101112131415161718192021222324252627282930
  1. # This is the project CMakeLists.txt file for the test subproject
  2. cmake_minimum_required(VERSION 3.5)
  3. set(CMAKE_CXX_STANDARD 17)
  4. # Include the components directory of the main application:
  5. #
  6. set(EXTRA_COMPONENT_DIRS "..")
  7. # Set the components to include the tests for.
  8. # This can be overridden from CMake cache:
  9. # - when invoking CMake directly: cmake -D TEST_COMPONENTS="xxxxx" ..
  10. # - when using idf.py: idf.py -T xxxxx build
  11. #
  12. set(TEST_COMPONENTS "kbf" CACHE STRING "List of components to test")
  13. # hax to avoid circular dependency with CLion + still build nicely with idf.py
  14. # set in root CMakeLists.txt: set(SKIP_IDF 1)
  15. #if (SKIP_IDF)
  16. # message("skipping include esp-idf")
  17. #else()
  18. # message("including esp-idf")
  19. # include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  20. #endif()
  21. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  22. set(EXTRA_COMPONENT_DIRS "../../" "../lib/esp-idf-lib/components/")
  23. project(kbf)