mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-23 23:37:31 +02:00
10 lines
365 B
CMake
10 lines
365 B
CMake
idf_component_register(SRCS "modem_main.cpp"
|
|
REQUIRES esp_modem)
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE Threads::Threads)
|
|
|
|
target_compile_features(${COMPONENT_LIB} PRIVATE cxx_std_17)
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE "-DCONFIG_IDF_TARGET_LINUX")
|