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)
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
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}")