Files
ultrasonic_cmake_vscode/cmake/project_config.cmake
hulk 3e42b474d1 revert 3ad18bf1f1
revert Merge pull request 'dev' (#1) from dev into main

Reviewed-on: #1
2025-08-25 17:34:39 +08:00

16 lines
476 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Project basic info
set(PROJECT_NAME "gd32e23x")
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
set(VERSION_PATCH 0)
set(VERSION "V${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
string(TIMESTAMP BUILD_DATE "%Y-%m-%d")
# 编译条件如IIC类型等
# set(IIC_TYPE "AutoDetectDriveCurrent")
set(IIC_TYPE "HW-IIC")
# 其它自定义宏
add_definitions(-DIIC_TYPE=${IIC_TYPE})
add_definitions(-DPROJECT_VERSION="${VERSION}")
add_definitions(-DBUILD_DATE="${BUILD_DATE}")