forked from espressif/esp-protocols
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")
|