cmake_minimum_required(VERSION 3.15)
project(lora_sx1302)
set (CMAKE_C_FLAGS "-std=c99")
# 设置版本信息
set(PROJECT_MAJOR_VERSION 1) # 架版本信息
set(PROJECT_MINOR_VERSION 2) # 主版本信息
set(PROJECT_PATCH_VERSION 0) # 次版本信息
set(PROJECT_VERSION ${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION})




set(PROJECT_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_ROOT_DIR}/build/bin)       #设置可执行文件的输出目录
set(LIBRARY_OUTPUT_PATH ${PROJECT_ROOT_DIR}/build/lib)           #设置库文件的输出目录

#MQTT提供给外部掉用的头文件路径和供第三方打包使用源文件路径
set(MQTT_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mqtt/sys_mqtt/include)
set(MQTT_SOURCE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mqtt/sys_mqtt/source)
set(LIB_SYSTEM_MQTT sys_mqtt)

#sx1302的库
set(SX1302_)




set(EXENAME mqtt_test)

add_subdirectory(mqtt)
#add_subdirectory(sx1302)硬件无暂时注释
add_subdirectory(system)
