cmake_minimum_required(VERSION 2.8.9)
include("${SRC_DIR}/build_options.cmake")
-set (QT_QMAKE_EXECUTABLE "/usr/local/Trolltech/Qt-4.8.5/bin/qmake")
+
+if (NOT DEFINED ENV{QTDIR})
+set(ENV{QTDIR} /usr/local/Trolltech/Qt-4.8.5)
+endif()
find_package(Qt4 REQUIRED)
+find_package(Threads REQUIRED)
+find_package(X11 REQUIRED)
+
include_directories(
${SRC_DIR}
${SRC_DIR}/voglcore
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${TELEMETRY_LIBRARY}
+ ${X11_X11_LIB}
backtrace
voglcommon
voglcore
+ ${CMAKE_DL_LIBS}
)
build_options_finalize()