version info added
This commit is contained in:
parent
cbbf0b77e7
commit
7ca6b69f9d
2 changed files with 9 additions and 1 deletions
|
@ -14,7 +14,9 @@ set(PICO_SDK_PATH "/usr/share/pico-sdk")
|
||||||
# Pull in Raspberry Pi Pico SDK (must be before project)
|
# Pull in Raspberry Pi Pico SDK (must be before project)
|
||||||
include(pico_sdk_import.cmake)
|
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
|
# Initialise the Raspberry Pi Pico SDK
|
||||||
pico_sdk_init()
|
pico_sdk_init()
|
||||||
|
|
6
config.h.in
Normal file
6
config.h.in
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
|
#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue