From: Manuel Nickschas Date: Fri, 6 Jun 2008 23:18:18 +0000 (+0200) Subject: Add -DQT=/path/to/qt to select a non-system Qt4 installation X-Git-Tag: 0.3.0~371^2~23 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=11cfe2306bc41f48c3f6639e0f934a1148806be4;hp=a45c9e65ddca9748bb29318a7de5cfef03900eb8 Add -DQT=/path/to/qt to select a non-system Qt4 installation --- 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)