SOURCES += icons.cxx
TARGET = ../bin/SALOME_InstallWizard
unix:LIBS += -lqt-mt -ldl -lSM -lXrender -lpng -lmng -ljpeg -lGL -lXinerama
+unix:QMAKE_CFLAGS += -Wno-deprecated
+unix:QMAKE_CXXFLAGS += -Wno-deprecated
#include <qglobal.h>
#include <iostream>
+#define __IW_VERSION_MAJOR__ 1
+#define __IW_VERSION_MINOR__ 0
+#define __IW_VERSION_PATCH__ 0
+
+#define __IW_VERSION__ (__IW_VERSION_MAJOR__*10000 + \
+ __IW_VERSION_MINOR__*100 + \
+ __IW_VERSION_PATCH__)
+
#ifdef QT_DEBUG
#define ___MESSAGE___( x ) std::cout << x << std::endl;
#include <qfile.h>
#include <qmessagebox.h>
-#define __IW_VERSION__ 0x010000
-
// ================================================================
/*!
* MessageOutput
QString a = QString( argv[i] );
if ( a == "--version" || a == "-v" ) {
printf("SALOME Installation Wizard version %d.%d.%d ",
- ( __IW_VERSION__ >> 16 ) & 0xFF,
- ( __IW_VERSION__ >> 8 ) & 0xFF,
- ( __IW_VERSION__ ) & 0xFF );
+ ( __IW_VERSION__ / 10000 ),
+ ( __IW_VERSION__ / 100 % 100 ),
+ ( __IW_VERSION__ % 100 ) );
printf("(Qt version %d.%d.%d)\n",
( QT_VERSION >> 16 ) & 0xFF,
( QT_VERSION >> 8 ) & 0xFF,