An example of how to write an CMakeLists.txt to use libqtxdg in a portable way. Building with Qt4 is the default. Ex: cmake.. To build with Qt5 just pass to set the USE_QT5 to Yes. Ex: cmake -DUSE_QT5=On ..