Added optional filerevision metadata (#82)
This commit is contained in:
Родитель
6bc22f9f47
Коммит
aa78d68546
|
@ -25,6 +25,10 @@ set(K4A_VERSION_PATCH ${CMAKE_MATCH_3})
|
|||
set(K4A_VERSION_PRERELEASE ${CMAKE_MATCH_5})
|
||||
set(K4A_VERSION_BUILDMETADATA ${CMAKE_MATCH_7})
|
||||
|
||||
if (NOT K4A_VERSION_REVISION)
|
||||
set(K4A_VERSION_REVISION "0")
|
||||
endif()
|
||||
|
||||
set(K4A_COMPANYNAME "Microsoft")
|
||||
set(K4A_PRODUCTNAME "Azure Kinect")
|
||||
set(K4A_COPYRIGHT "Copyright Microsoft Corporation. All rights reserved.")
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include <windows.h>
|
||||
|
||||
#define VER_FILEVERSION @K4A_VERSION_MAJOR@,@K4A_VERSION_MINOR@,@K4A_VERSION_PATCH@,0
|
||||
#define VER_FILEVERSION @K4A_VERSION_MAJOR@,@K4A_VERSION_MINOR@,@K4A_VERSION_PATCH@,@K4A_VERSION_REVISION@
|
||||
#define VER_FILEVERSION_STR "@VERSION_STR@\0"
|
||||
|
||||
#define VER_PRODUCTVERSION @K4A_VERSION_MAJOR@,@K4A_VERSION_MINOR@,@K4A_VERSION_PATCH@,0
|
||||
#define VER_PRODUCTVERSION @K4A_VERSION_MAJOR@,@K4A_VERSION_MINOR@,@K4A_VERSION_PATCH@,@K4A_VERSION_REVISION@
|
||||
#define VER_PRODUCTVERSION_STR "@VERSION_STR@\0"
|
||||
|
||||
#define VER_COMPANYNAME_STR "@K4A_COMPANYNAME@\0"
|
||||
|
|
Загрузка…
Ссылка в новой задаче