/*
 * Inscoper NBO Example: Get Version
 * =================================
 * This example demonstrates how to retrieve the version of the NBO library.
 *
 * Prerequisites:
 * -------------
 * 1. Installation: the include directory of the release must be on the include
 *    paths, and the application must link against the NBO library.
 */

// --8<-- [start:main_logic]
#include <NBO/NBO/NBOUtils.h>
#include <NBO/NBOVersion.h>

#include <iostream>

int main() {
    // Identification string of the library, read from the binary itself
    std::cout << Inscoper::NBO::NBOUtils::getVersion() << std::endl;

    // The same version is available at compile time, from NBOVersion.h, which
    // lets an application check the headers it built against
    std::cout << INSCOPER_NBO_VERSION_MAJOR << "."
              << INSCOPER_NBO_VERSION_MINOR << "."
              << INSCOPER_NBO_VERSION_PATCH << std::endl;

    return 0;
}
// --8<-- [end:main_logic]
