version info added

This commit is contained in:
Martin Brodbeck 2022-05-31 13:00:33 +02:00
parent cbbf0b77e7
commit 7ca6b69f9d
2 changed files with 9 additions and 1 deletions

View File

@ -14,7 +14,9 @@ set(PICO_SDK_PATH "/usr/share/pico-sdk")
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
project(gbmanager C CXX ASM)
project(gbmanager VERSION "1.0.0" LANGUAGES C CXX ASM)
configure_file(config.h.in ${PROJECT_BINARY_DIR}/config.h)
# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()

6
config.h.in Normal file
View File

@ -0,0 +1,6 @@
#ifndef CONFIG_H
#define CONFIG_H
#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"
#endif