From 27cccbedcb3e9255f804bf4e03417c9cbe81cf11 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Wed, 13 Dec 2023 11:05:29 +0100 Subject: [PATCH] Adjust build system for Freetype and LCMS (recommended settings) --- CMakeLists.txt | 4 ++-- Pdf4QtLibCore/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69c3acc..7dc98bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,9 +56,9 @@ endif() qt_standard_project_setup() find_package(OpenSSL REQUIRED) -find_package(lcms REQUIRED) +find_package(lcms2 CONFIG REQUIRED) find_package(ZLIB REQUIRED) -find_package(freetype CONFIG REQUIRED) +find_package(Freetype REQUIRED) find_package(OpenJPEG CONFIG REQUIRED) find_package(JPEG REQUIRED) find_package(PNG REQUIRED) diff --git a/Pdf4QtLibCore/CMakeLists.txt b/Pdf4QtLibCore/CMakeLists.txt index 51f380a..6f12727 100644 --- a/Pdf4QtLibCore/CMakeLists.txt +++ b/Pdf4QtLibCore/CMakeLists.txt @@ -156,7 +156,7 @@ target_link_libraries(Pdf4QtLibCore PRIVATE Qt6::Core Qt6::Gui Qt6::Xml Qt6::Svg target_link_libraries(Pdf4QtLibCore PRIVATE lcms2::lcms2) target_link_libraries(Pdf4QtLibCore PRIVATE OpenSSL::SSL OpenSSL::Crypto) target_link_libraries(Pdf4QtLibCore PRIVATE ZLIB::ZLIB) -target_link_libraries(Pdf4QtLibCore PRIVATE freetype) +target_link_libraries(Pdf4QtLibCore PRIVATE Freetype::Freetype) target_link_libraries(Pdf4QtLibCore PRIVATE openjp2) target_link_libraries(Pdf4QtLibCore PRIVATE JPEG::JPEG)