#ifndef VERSION_H_IN #define VERSION_H_IN #include namespace nxl { static constexpr int VERSION_MAJOR = ${PROJECT_VERSION_MAJOR}; static constexpr int VERSION_MINOR = ${PROJECT_VERSION_MINOR}; static constexpr int VERSION_PATCH = ${PROJECT_VERSION_PATCH}; static constexpr char VERSION_SUFFIX[] = "${PROJECT_VERSION_SUFFIX}"; inline std::string getVersionString() { return std::to_string(VERSION_MAJOR) + "." + std::to_string(VERSION_MINOR) + "." + std::to_string(VERSION_PATCH) + VERSION_SUFFIX; } } // namespace nxl #endif // VERSION_H_IN