-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d822135
commit 874f629
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef ADIAR_VERSION_H | ||
#define ADIAR_VERSION_H | ||
|
||
#include <string_view> | ||
|
||
namespace adiar | ||
{ | ||
////////////////////////////////////////////////////////////////////////////// | ||
/// \addtogroup module__adiar | ||
/// | ||
/// \{ | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \name Version Number | ||
/// | ||
/// \{ | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \brief Major version of Adiar. | ||
////////////////////////////////////////////////////////////////////////////// | ||
constexpr unsigned short version_major = @CMAKE_PROJECT_VERSION_MAJOR@; | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \brief Minor version of Adiar. | ||
////////////////////////////////////////////////////////////////////////////// | ||
constexpr unsigned short version_minor = @CMAKE_PROJECT_VERSION_MINOR@; | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \brief Patch version of Adiar. | ||
////////////////////////////////////////////////////////////////////////////// | ||
constexpr unsigned short version_patch = @CMAKE_PROJECT_VERSION_PATCH@; | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \brief Combined version number of Adiar into a single integer with two | ||
/// decimal digits for the *major*, *minor*, and *patch* version. | ||
////////////////////////////////////////////////////////////////////////////// | ||
constexpr unsigned short version = | ||
(version_major * 10'000) + (version_minor*100) + version_patch; | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/// \brief A pre-formatted string for version of the Adiar version. | ||
////////////////////////////////////////////////////////////////////////////// | ||
constexpr std::string_view version_str = "@CMAKE_PROJECT_VERSION@"; | ||
|
||
/// \} | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
/// \} | ||
////////////////////////////////////////////////////////////////////////////// | ||
} | ||
|
||
#endif // ADIAR_VERSION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters