diff options
-rw-r--r-- | linden/indra/cmake/WebKitLibPlugin.cmake | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/cmake/WebKitLibPlugin.cmake b/linden/indra/cmake/WebKitLibPlugin.cmake index 3eafe77..9c56838 100644 --- a/linden/indra/cmake/WebKitLibPlugin.cmake +++ b/linden/indra/cmake/WebKitLibPlugin.cmake | |||
@@ -3,6 +3,16 @@ include(Linking) | |||
3 | include(Prebuilt) | 3 | include(Prebuilt) |
4 | 4 | ||
5 | if (STANDALONE) | 5 | if (STANDALONE) |
6 | # The minimal version, 4.4.3, is rather arbitrary: it's the version in Debian/Lenny. | ||
7 | find_package(Qt4 4.4.3 COMPONENTS QtCore QtGui QtNetwork QtOpenGL REQUIRED) | ||
8 | include(${QT_USE_FILE}) | ||
9 | set(QTDIR $ENV{QTDIR}) | ||
10 | if (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin") | ||
11 | message(FATAL_ERROR "\"${QT_BINARY_DIR}\" is unequal \"${QTDIR}/bin\"; " | ||
12 | "Qt is found by looking for qmake in your PATH. " | ||
13 | "Please set your PATH such that 'qmake' is found in \$QTDIR/bin, " | ||
14 | "or unset QTDIR if the found Qt is correct.") | ||
15 | endif (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin") | ||
6 | find_package(LLQtWebkit REQUIRED QUIET) | 16 | find_package(LLQtWebkit REQUIRED QUIET) |
7 | set(WEBKITLIBPLUGIN OFF CACHE BOOL | 17 | set(WEBKITLIBPLUGIN OFF CACHE BOOL |
8 | "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.") | 18 | "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.") |
@@ -36,7 +46,7 @@ elseif (DARWIN) | |||
36 | ) | 46 | ) |
37 | elseif (LINUX) | 47 | elseif (LINUX) |
38 | if (STANDALONE) | 48 | if (STANDALONE) |
39 | set(WEBKIT_PLUGIN_LIBRARIES ${LLQTWEBKIT_LIBRARY}) | 49 | set(WEBKIT_PLUGIN_LIBRARIES ${LLQTWEBKIT_LIBRARY} ${QT_LIBRARIES}) |
40 | else (STANDALONE) | 50 | else (STANDALONE) |
41 | set(WEBKIT_PLUGIN_LIBRARIES | 51 | set(WEBKIT_PLUGIN_LIBRARIES |
42 | llqtwebkit | 52 | llqtwebkit |