# Host-based unit tests for the `sensors` component, run on ESP-IDF's
# `linux` target (no board needed). Build/run with:
#
#   idf.py --preview set-target linux
#   idf.py build
#   ./build/test_sensor_host.elf
#
# COMPONENTS is restricted (mirrors the pattern used by ESP-IDF's own
# in-tree host test apps, e.g. components/cxx/test_apps/*) so the build
# doesn't try to pull in board-only components that don't build for
# linux.
cmake_minimum_required(VERSION 3.16)

set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../../")
set(COMPONENTS main sensors unity)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(test_sensor_host)
