2021-04-04 22:15:46 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
|
2021-05-15 22:09:08 +02:00
|
|
|
set(EXTRA_COMPONENT_DIRS # Add esp_modem component and linux port components
|
|
|
|
../..
|
|
|
|
../../port/linux)
|
2021-04-04 22:15:46 +02:00
|
|
|
|
|
|
|
set(COMPONENTS main)
|
|
|
|
project(host_modem_test)
|
|
|
|
|
|
|
|
idf_component_get_property(esp_modem esp_modem COMPONENT_LIB)
|
|
|
|
target_compile_definitions(${esp_modem} PRIVATE "-DCONFIG_COMPILER_CXX_EXCEPTIONS")
|
|
|
|
target_compile_definitions(${esp_modem} PRIVATE "-DCONFIG_IDF_TARGET_LINUX")
|
2022-02-23 11:00:05 +01:00
|
|
|
target_link_options(${esp_modem} INTERFACE -fsanitize=address -fsanitize=undefined)
|