12345678910111213141516171819202122232425262728293031323334 |
- #ifndef cmVersion_h
- #define cmVersion_h
- #include "cm_kwiml.h"
- class cmVersion
- {
- public:
-
- static unsigned int GetMajorVersion();
- static unsigned int GetMinorVersion();
- static unsigned int GetPatchVersion();
- static unsigned int GetTweakVersion();
- static const char* GetCMakeVersion();
- };
- #define CMake_VERSION_ENCODE__BASE KWIML_INT_UINT64_C(100000000)
- #define CMake_VERSION_ENCODE(major, minor, patch) \
- ((((major)*1000u) * CMake_VERSION_ENCODE__BASE) + \
- (((minor) % 1000u) * CMake_VERSION_ENCODE__BASE) + \
- (((patch) % CMake_VERSION_ENCODE__BASE)))
- #endif
|