If QT_DONT_USE_QTGUI is set to TRUE in CMakeLists.txt, cmdline_tester doesn't link because on Windows (using Q_OS_WIN define) it calls QMessageBox::information() and QMessageBox::critical() (see tests/cmdline_tester/cmdlineparser.cpp line 119). So only set QT_DONT_USE_QTGUI to TRUE on non-Windows platforms.
If QT_DONT_USE_QTGUI is set to TRUE in CMakeLists.txt, cmdline_tester doesn't link because on Windows (using Q_OS_WIN define) it calls QMessageBox::information() and QMessageBox::critical() (see tests/cmdline_tester/cmdlineparser.cpp line 119). So only set QT_DONT_USE_QTGUI to TRUE on non-Windows platforms.

qlands/qjson,seem-sky/qjson,coolshou/qjson,drizt/qjson,cbranch/qjson-qmakefriendly,qlands/qjson,flavio/qjson,flavio/qjson,coolshou/qjson,cbranch/qjson-qmakefriendly,drizt/qjson,seem-sky/qjson