nt9856x/code/application/sifarsdk/component/AtCommand/CMakeLists.txt

41 lines
1.2 KiB
CMake

include(${CMAKE_SOURCE_DIR}/build/global_config.cmake)
set(EXECUTABLE_OUTPUT_PATH ${EXEC_OUTPUT_PATH})
set(LIBRARY_OUTPUT_PATH ${LIBS_OUTPUT_PATH})
include_directories(
./src
./include
${COMPONENT_SOURCE_PATH}/ReturnCode/include
${COMPONENT_SOURCE_PATH}/Log/include
${COMPONENT_SOURCE_PATH}/Config/include
${COMPONENT_SOURCE_PATH}/Common/include
${COMPONENT_SOURCE_PATH}/cJSON/include
${HAL_SOURCE_PATH}/include
${AT_COMMAND_PATH}
)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
aux_source_directory(./src SRC_FILES)
# Config to choose live service platform.
# string(COMPARE EQUAL "${AT_COMMAND_PATH}" "" value)
# message("The at-command src code path is ${AT_COMMAND_PATH}.")
# if (value EQUAL 0) #变量被设置了
# message("build at-command src code.")
# include(${AT_COMMAND_PATH}/at-command.cmake)
# endif()
include(${COMPONENT_SOURCE_PATH}/AtCommand/src/${AT_COMMAND_SRC_PATH}/at_command.cmake)
set(TARGET_NAME AtCommand)
add_library(${TARGET_NAME} STATIC ${SRC_FILES})
target_link_libraries(${TARGET_NAME} Config Hal ReturnCode Log)
# SF_LIBS += -llink_visual_device
# SF_LIBS += -liot_sdk
# SF_LIBS += -liot_hal
# SF_LIBS += -liot_tls