X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=60da13372ebaef692cdeb8d1ee6122f5254482a2;hp=8462db8ad392bf2328cba7ddd982e6180466584d;hb=12d5b08ebc07113674642483bdaad9bcd63a9a95;hpb=57d9abdd9cb8506a12f4a2dbb96fd8d840c380c8 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8462db8a..60da1337 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ option(WANT_MONO "Build the monolithic (all-in-one) binary" OFF) option(WITH_OPENSSL "Enable OpenSSL support if present on the system" ON) option(WITH_DBUS "Enable D-Bus support if present on the system" ON) +option(WITH_WEBKIT "Enable WebKit support if present on the system" ON) option(STATIC "Enable static building (might not be portable)" OFF) option(DEPLOY "Mac OS X only! Adds required libs to bundle resources and create a dmg. Note: requires Qt to be built with 10.4u SDK" OFF) @@ -133,6 +134,22 @@ else(WITH_DBUS) message(STATUS "Disabling D-Bus support") endif(WITH_DBUS) +# Setup QtWebKit support +if(WITH_WEBKIT) + if(QT_QTWEBKIT_FOUND) + message(STATUS "Found QtWebKit, enabling WebKit support") + add_definitions(-DHAVE_WEBKIT) + set(LINK_WEBKIT WEBKIT) + set(HAVE_WEBKIT true) + set(MOC_DEFINES ${MOC_DEFINES} -DHAVE_WEBKIT) + else(QT_QTWEBKIT_FOUND) + message(STATUS "QtWebKit not found, disabling D-Bus support") + endif(QT_QTWEBKIT_FOUND) +else(WITH_WEBKIT) + message(STATUS "Disabling WebKit support") +endif(WITH_WEBKIT) + + # Set global buildflags # This is very much non-portable, so don't use -DSTATIC until you know what # you do. @@ -152,7 +169,7 @@ if(STATIC AND WIN32) endif(STATIC AND WIN32) if(WIN32) - set(RC_WIN32 pics/win32.rc) # for app icons on windows + set(RC_WIN32 ../pics/win32.rc) # for app icons on windows endif(WIN32) # This is dirty, but I haven't found a cleaner way to ensure that the generated .qrc files