diff --git a/CMakeLists.txt b/CMakeLists.txt index ccf24b6..d67d624 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..b3f9bae --- /dev/null +++ b/config.h.in @@ -0,0 +1,6 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@" + +#endif \ No newline at end of file