mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-24 15:57:28 +02:00
16 lines
658 B
CMake
16 lines
658 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
set(EXTRA_COMPONENT_DIRS ../..)
|
|
|
|
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")
|
|
target_link_options(${esp_modem} INTERFACE -fsanitize=address)
|
|
#set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
|
|
#set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |