I am using Debian OS and I\'m trying to point to cmake where is my Qt4.
I try to build qjson library and with its CMakeLists.txt: http://pastebin.com/fKNp0Qgy
I
I solved my problem.
Looking for QT_SELECT with grep
command I found that QT_SELECT is related to /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf
file. From the "default" file name I assumed that it is what is seen as QT_SELECT. Other configs presented with qtchooser -l
are in /usr/share/qtchooser/
and /usr/lib/x86_64-linux-gnu/qtchooser
directories.
Such a config file has two lines with paths. I just changed these lines, first pointing to my Qt bin directory and second pointing to my Qt lib directory. Then I could see that qtchooser -print-env
shows QTTOOLDIR
and QTLIBDIR
to my Qt.
Then I could easily build qjson library with CMake, Qt4 was found correctly.