Break down tests into categories to improve maintainability and test granularity. This makes it easier to execute unit tests in CI/CD pipelines. Closes #1054.
20 lines
738 B
CMake
20 lines
738 B
CMake
# This is the project CMakeLists.txt file for the test subproject
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
# Define component search paths
|
|
# IMPORTANT: We should tell to the ESP-IDF
|
|
# where it can find relay_chn component.
|
|
# We add the 'relay_chn' root directory to the EXTRA_COMPONENT_DIRS by specifying: "../"
|
|
set(EXTRA_COMPONENT_DIRS "../")
|
|
|
|
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
|
set(COMPONENTS main)
|
|
|
|
# Include ESP-IDF project build system
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
# Inject the test tag into the build
|
|
add_compile_definitions(RELAY_CHN_UNITY_TEST_GROUP_TAG=\"$ENV{RELAY_CHN_UNITY_TEST_GROUP_TAG}\")
|
|
|
|
# Define the name of this project
|
|
project(relay_chn_test) |