From 5ace24e4f39d4d08391f42a51ba219684695fb09 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Fri, 28 May 2021 17:09:05 +0200 Subject: [PATCH] On linux, find the icu stuff, place it in the build dir so you can go to Results tab locally too. (+ install them explicitly) --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 197b9802a..830dd7961 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -586,7 +586,16 @@ if(NOT APPLE) # list(APPEND QT_PLUGINS Qt5::QXcbGlxIntegrationPlugin) find_library(QT_QXCBQPA NAMES libQt5XcbQpa.so.${QT_VERSION} PATHS "${QT_INSTALL_DIR}/lib" NO_DEFAULT_PATH) - list(APPEND QT_EXTRA_LIBS ${QT_QXCBQPA}) + find_library(QT_ICU icui18n REQUIRED PATHS "${QT_INSTALL_DIR}/lib" NO_DEFAULT_PATH) + find_library(QT_ICUDATA icudata REQUIRED PATHS "${QT_INSTALL_DIR}/lib" NO_DEFAULT_PATH) + find_library(QT_ICUUC icuuc REQUIRED PATHS "${QT_INSTALL_DIR}/lib" NO_DEFAULT_PATH) + set(QT_ICU_LIBS + ${QT_ICU} + ${QT_ICUDATA} + ${QT_ICUUC} + ) + + list(APPEND QT_EXTRA_LIBS ${QT_QXCBQPA} ${QT_ICU_LIBS}) endif() endif()