From 11cfe2306bc41f48c3f6639e0f934a1148806be4 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 7 Jun 2008 01:18:18 +0200 Subject: [PATCH 1/1] Add -DQT=/path/to/qt to select a non-system Qt4 installation --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1a3f124..ba3948cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ # This is the cmake-based build system for Quassel IRC. +# You may pass various options to cmake: +# -DBUILD= : Select binaries to build. may contain any combination +# of "core", "client", "mono" or "all". +# -DQT=/path/to/qt : Choose a Qt4 installation to use instead of the system Qt4 +# -DSPUTDEV : Do not use. project(QuasselIRC) @@ -34,6 +39,12 @@ else(BUILD MATCHES all) endif(BUILD MATCHES mono) endif(BUILD MATCHES all) +# Select a Qt installation here, if you don't want to use system Qt +if(DEFINED QT) + # FindQt4 will look for the qmake binary in $PATH, so we just prepend the Qt dir + set(ENV{PATH} ${QT}/bin:$ENV{PATH}) +endif(DEFINED QT) + # Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do... if(SPUTDEV) add_definitions(-DSPUTDEV) -- 2.20.1