projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a45c9e6
)
Add -DQT=/path/to/qt to select a non-system Qt4 installation
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 6 Jun 2008 23:18:18 +0000
(
01:18
+0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 6 Jun 2008 23:18:18 +0000
(
01:18
+0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
d1a3f12
..
ba3948c
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1,4
+1,9
@@
# This is the cmake-based build system for Quassel IRC.
# This is the cmake-based build system for Quassel IRC.
+# You may pass various options to cmake:
+# -DBUILD=<string> : Select binaries to build. <string> 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)
project(QuasselIRC)
@@
-34,6
+39,12
@@
else(BUILD MATCHES all)
endif(BUILD MATCHES mono)
endif(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)
# Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do...
if(SPUTDEV)
add_definitions(-DSPUTDEV)