1 Star 0 Fork 1

weizx208/Dart24-飞镖充电桩

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
橙子 提交于 2024-05-13 22:26 +08:00 . First Commit
# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_options(-fdiagnostics-color=always
-Wno-attributes
-Wno-unused-variable
-Wno-unused-function
-Wno-ignored-qualifiers)
project(Dart24-Charger)
set(DEBUG_VERSION "DebugMode")
set(RELEASE_VERSION "ReleaseMode")
set(COMPILE_MODE ${DEBUG_VERSION}) # 编译模式
string(TIMESTAMP COMPILE_TIME %y%m%d%H%M) # 生成编译时间
set(VERSION_MAJOR 1) # 一级版本号
set(VERSION_MINOR 0) # 二级版本号
set(VERSION_LEVEL3 0) # 三级版本号
# Debug模式(目标:上一个版本号+编译时间)
if(${COMPILE_MODE} MATCHES ${DEBUG_VERSION})
message(STATUS "Compile mode: ${COMPILE_MODE}")
set(PROJECT_VER v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_LEVEL3}-${COMPILE_TIME}-debug)
message(STATUS "Version: ${PROJECT_VER}")
# Release模式(目标:版本号)
else()
message(STATUS "Compile mode: ${COMPILE_MODE}")
set(PROJECT_VER v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_LEVEL3})
message(STATUS "Version: ${PROJECT_VER}")
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weixiao2016/dart24-dart-charging-station.git
git@gitee.com:weixiao2016/dart24-dart-charging-station.git
weixiao2016
dart24-dart-charging-station
Dart24-飞镖充电桩
master

搜索帮助