X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=b57061aff4289d2c839690f6d0aad48ef5235eaa;hp=47a672e7c2b3048ffac5655ecbf6cf22a44c2e94;hb=b6cb2c68d2a39f2a2d08cacf4fe7373e27a649e9;hpb=1c8c7ffcfad6f37d2810c4130a23c95ca7ba2a46 diff --git a/CMakeLists.txt b/CMakeLists.txt index 47a672e7..b57061af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,16 +187,31 @@ if(USE_QT5) DESCRIPTION "a multimedia abstraction library" PURPOSE "Required for audio notifications" ) + + find_package(LibsnoreQt5 QUIET) + set_package_properties(LibsnoreQt5 PROPERTIES TYPE OPTIONAL + URL "https://github.com/TheOneRing/Snorenotify" + DESCRIPTION "a cross-platform notification framework" + PURPOSE "Enable support for the snorenotify framework" + ) if (WITH_WEBKIT) - find_package(Qt5Webkit QUIET) - set_package_properties(Qt5Webkit PROPERTIES TYPE RECOMMENDED + find_package(Qt5WebKit QUIET) + set_package_properties(Qt5WebKit PROPERTIES TYPE RECOMMENDED URL "http://qt.digia.com" - DESCRIPTION "a Webkit implementation for Qt" + DESCRIPTION "a WebKit implementation for Qt" PURPOSE "Needed for displaying previews for URLs in chat" ) + if (Qt5WebKit_FOUND) + find_package(Qt5WebKitWidgets QUIET) + set_package_properties(Qt5WebKitWidgets PROPERTIES TYPE RECOMMENDED + URL "http://qt.digia.com" + DESCRIPTION "widgets for Qt's WebKit implementation" + PURPOSE "Needed for displaying previews for URLs in chat" + ) + endif() endif() - add_feature_info("WITH_WEBKIT and QtWebkit module" Qt5Webkit_FOUND "Support showing previews for URLs in chat") + add_feature_info("WITH_WEBKIT, QtWebKit and QtWebKitWidgets modules" Qt5WebKitWidgets_FOUND "Support showing previews for URLs in chat") endif(BUILD_GUI) if (BUILD_CORE) @@ -254,7 +269,7 @@ else(USE_QT5) if (WITH_WEBKIT AND QT_QTWEBKIT_FOUND) set(HAVE_WEBKIT true) endif() - add_feature_info("WITH_WEBKIT and QtWebkit module" HAVE_WEBKIT "Support showing previews for URLs in chat") + add_feature_info("WITH_WEBKIT and QtWebKit module" HAVE_WEBKIT "Support showing previews for URLs in chat") if (WITH_KDE) # KDE has overzealous CFLAGS making miniz not compile, so save our old flags @@ -432,10 +447,14 @@ endif(STATIC AND CMAKE_COMPILER_IS_GNUCXX) if(WIN32) link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/ if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX") set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO "/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt") set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt") set(CMAKE_EXE_LINKER_FLAGS_DEBUGFULL "${CMAKE_EXE_LINKER_FLAGS_DEBUG}") link_libraries(Version dwmapi shlwapi) + if(USE_QT5) + set(QT_QTMAIN_LIBRARY Qt5::WinMain) + endif(USE_QT5) endif(MSVC) if(HAVE_SSL AND STATIC) find_package(OpenSSL REQUIRED)