24 lines
654 B
C++
24 lines
654 B
C++
|
#include <myx/core/config.hpp>
|
||
|
#include <myx/core/current_system.hpp>
|
||
|
|
||
|
#include <QDebug>
|
||
|
|
||
|
//NOLINTNEXTLINE
|
||
|
#define CMLIB_PROJECT_NAME "myxlib"
|
||
|
|
||
|
namespace MC = myx::core;
|
||
|
|
||
|
int main( int argc, char** argv )
|
||
|
{
|
||
|
(void)argc;
|
||
|
(void)argv;
|
||
|
|
||
|
MC::CurrentSystem& currentSystem = MC::CurrentSystem::instance();
|
||
|
qDebug() << "Current OS: " << QString::fromStdString( currentSystem.os() );
|
||
|
qDebug() << "OS distrib: " << QString::fromStdString( currentSystem.distribution() );
|
||
|
qDebug() << "OS variant: " << QString::fromStdString( currentSystem.variant() );
|
||
|
qDebug() << "OS version: " << QString::fromStdString( currentSystem.version() );
|
||
|
|
||
|
return( 0 );
|
||
|
} // main
|