mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
19 lines
659 B
CMake
19 lines
659 B
CMake
# This is the project CMakeLists.txt file for the test subproject
|
|
cmake_minimum_required(VERSION 3.22)
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
set(EXTRA_COMPONENT_DIRS "../test_common")
|
|
|
|
# Include console command helper component
|
|
list(APPEND EXTRA_COMPONENT_DIRS "../../components/mb_console_helper")
|
|
|
|
# The workaround for the test_utils under ESP-IDF v6.0
|
|
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.5")
|
|
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components")
|
|
else()
|
|
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
|
|
endif()
|
|
|
|
project(test_modbus_comm_multi_dev)
|