Add PlaYUVerVersion.cmake and definition of the version number inside the software
This commit is contained in:
1 parent
960db8a906
commit
211b16d045
3 files changed
+11
-5
No files matched your search
+1
-5
@@ -14,13 +14,9 @@ IF(UNIX)
|
||||
ENDIF(UNIX)
|
||||
|
||||
SET( PROJECT_NAME "playuver" )
|
||||
SET( PLAYUVER_VERSION_MAJOR "0" )
|
||||
SET( PLAYUVER_VERSION_MINOR "0" )
|
||||
SET( PLAYUVER_VERSION_PATCH "9999" )
|
||||
#SET( PLAYUVER_VERSION_PATCH ${DAY} )
|
||||
SET( PLAYUVER_VERSION "${PLAYUVER_VERSION_MAJOR}.${PLAYUVER_VERSION_MINOR}.${PLAYUVER_VERSION_PATCH}")
|
||||
|
||||
PROJECT( ${PROJECT_NAME} )
|
||||
INCLUDE( PlaYUVerVersion.cmake )
|
||||
|
||||
INCLUDE( cmake/CMakeMacros.cmake )
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
SET( PLAYUVER_VERSION_MAJOR "0" )
|
||||
SET( PLAYUVER_VERSION_MINOR "0" )
|
||||
SET( PLAYUVER_VERSION_PATCH "9999" )
|
||||
SET( PLAYUVER_VERSION "${PLAYUVER_VERSION_MAJOR}.${PLAYUVER_VERSION_MINOR}.${PLAYUVER_VERSION_PATCH}")
|
||||
@@ -26,6 +26,12 @@
|
||||
#ifndef __CONFIG_PLAYUVER_H__
|
||||
#define __CONFIG_PLAYUVER_H__
|
||||
|
||||
/* Version definition */
|
||||
#define PLAYUVER_VERSION_MAJOR @PLAYUVER_VERSION_MAJOR@
|
||||
#define PLAYUVER_VERSION_MINOR @PLAYUVER_VERSION_MINOR@
|
||||
#define PLAYUVER_VERSION_PATCH @PLAYUVER_VERSION_PATCH@
|
||||
#define PLAYUVER_VERSION @PLAYUVER_VERSION@
|
||||
|
||||
|
||||
/* QT definition */
|
||||
#cmakedefine USE_QT4
|
||||
|
||||
Reference in new issue
Block a user