-# Sqlite always depends on the threading lib
-list(APPEND SQLITE3_LIBRARY ${CMAKE_THREAD_LIBS_INIT})
-
+##############################################################################
+## Qt5 setup setup
+if (ENABLE_QT)
+ message(STATUS "Qt launcher enabled, checking for Qt 5.1 / qmake")
+ find_package(Qt5 5.1 COMPONENTS Widgets)
+ if (Qt5Widgets_FOUND)
+ message(STATUS "Will enable Qt launcher GUI")
+ message(STATUS " Qt5Widgets version: ${Qt5Widgets_VERSION_STRING}")
+ message(STATUS " Qt5Widgets include dir: ${Qt5Widgets_INCLUDE_DIRS}")
+ set(HAVE_QT 1)
+ endif()
+endif (ENABLE_QT)