mqtt client release v1.1.0 ...
This commit is contained in:
17
components/connectivity/mqttclient/mqtt/CMakeLists.txt
Normal file
17
components/connectivity/mqttclient/mqtt/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
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})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
else()
|
||||
message(WARNING "not find is src file!")
|
||||
endif()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user