/*********************************************************************
 *        _       _         _
 *  _ __ | |_  _ | |  __ _ | |__   ___
 * | '__|| __|(_)| | / _` || '_ \ / __|
 * | |   | |_  _ | || (_| || |_) |\__ \
 * |_|    \__|(_)|_| \__,_||_.__/ |___/
 *
 * www.rt-labs.com
 * Copyright 2018 rt-labs AB, Sweden.
 *
 * This software is dual-licensed under GPLv3 and a commercial
 * license. See the file LICENSE.md distributed with this software for
 * full license information.
 ********************************************************************/

#ifndef PNET_VERSION_H
#define PNET_VERSION_H

#cmakedefine PROFINET_GIT_REVISION "@PROFINET_GIT_REVISION@"

#if !defined(PNET_VERSION_BUILD) && defined(PROFINET_GIT_REVISION)
#define PNET_VERSION_BUILD PROFINET_GIT_REVISION
#endif

/* clang-format-off */

#define PNET_VERSION_MAJOR @PROFINET_VERSION_MAJOR@
#define PNET_VERSION_MINOR @PROFINET_VERSION_MINOR@
#define PNET_VERSION_PATCH @PROFINET_VERSION_PATCH@

#if defined(PNET_VERSION_BUILD)
#define PNET_VERSION \
   "@PROFINET_VERSION_MAJOR@.@PROFINET_VERSION_MINOR@.@PROFINET_VERSION_PATCH@+" PNET_VERSION_BUILD
#else
#define PNET_VERSION \
   "@PROFINET_VERSION_MAJOR@.@PROFINET_VERSION_MINOR@.@PROFINET_VERSION_PATCH@"
#endif

/* clang-format-on */

#endif /* PNET_VERSION_H */
