Files
TencentOS-tiny/components/connectivity/mqttclient/network/CMakeLists.txt
2020-06-18 19:49:31 +08:00

23 lines
528 B
CMake

set(SUBDIRS "mbedtls")
aux_source_directory(. DIR_SRCS)
string(REGEX REPLACE ".*/(.*)" "\\1" LIB_NAME ${CMAKE_CURRENT_SOURCE_DIR})
if (DIR_SRCS)
foreach(libname ${LIBNAMES})
if (${LIB_NAME} STREQUAL ${libname})
add_library(${libname} ${CMAKE_LIB_TYPE} ${DIR_SRCS})
target_link_libraries(${libname} "platform" "mbedtls")
endif()
endforeach()
else()
message(WARNING "not find is src file!")
endif()
foreach(subdir ${SUBDIRS})
add_subdirectory(${subdir})
endforeach()