ADD_EXECUTABLE(HelpBrowser ${HelpBrowser_SOURCES})
TARGET_LINK_LIBRARIES(HelpBrowser ${_link_LIBRARIES})
INSTALL(TARGETS HelpBrowser EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
+INSTALL(FILES qt.conf DESTINATION ${SALOME_INSTALL_BINS})
#include <iostream>
+#ifdef WIN32
+#include <windows.h>
+#endif
+
+
namespace
{
void printHelp()
}
}
+#if defined(WIN32) && defined(UNICODE)
+ LPWSTR *szArglist = NULL;
+ int nArgs;
+ int i;
+ szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
+ helpfile = QString::fromWCharArray(szArglist[nArgs-1]);
+ // Free memory allocated for CommandLineToArgvW arguments.
+ LocalFree(szArglist);
+#endif
+
// Show help and exit if '--help' or '-h' option has been specified via command line
if ( showHelp )
{