From 686a1bec99b7721d361eb54356d63d5c8239f565 Mon Sep 17 00:00:00 2001 From: Frank Zingsheim Date: Sun, 26 Jul 2020 00:22:28 +0200 Subject: [PATCH] GUI: Add online help (CMake) --- cmake/findDependencies.cmake | 4 ++-- gui/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake index bf194d586..18f8499ac 100644 --- a/cmake/findDependencies.cmake +++ b/cmake/findDependencies.cmake @@ -1,8 +1,8 @@ if (BUILD_GUI) if (NOT WITH_QCHART) - find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools REQUIRED) + find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools Help REQUIRED) else() - find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools Charts REQUIRED) + find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools Help Charts REQUIRED) endif() endif() diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index fb40ddafa..9cd93a21f 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -27,7 +27,7 @@ if (BUILD_GUI) if (USE_Z3) target_link_libraries(cppcheck-gui ${Z3_LIBRARIES}) endif() - target_link_libraries(cppcheck-gui Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport) + target_link_libraries(cppcheck-gui Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Help) if(WITH_QCHART) target_compile_definitions (cppcheck-gui PRIVATE HAVE_QCHART ) target_link_libraries(cppcheck-gui Qt5::Charts)