mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
14 lines
485 B
CMake
14 lines
485 B
CMake
# The following lines of boilerplate have to be in your project's CMakeLists
|
|
# in this exact order for cmake to work correctly
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
set(EXTRA_COMPONENT_DIRS "../../../")
|
|
set(EXCLUDE_COMPONENTS freemodbus)
|
|
|
|
# Include parameters from common modbus folder
|
|
set(MB_PARAMS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../mb_example_common")
|
|
list(APPEND EXTRA_COMPONENT_DIRS "${MB_PARAMS_DIR}")
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
project(modbus_master)
|