Adjust build system for Freetype and LCMS (recommended settings)

This commit is contained in:
Jakub Melka 2023-12-13 11:05:29 +01:00
parent 15e7b93393
commit 27cccbedcb
2 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ endif()
qt_standard_project_setup() qt_standard_project_setup()
find_package(OpenSSL REQUIRED) find_package(OpenSSL REQUIRED)
find_package(lcms REQUIRED) find_package(lcms2 CONFIG REQUIRED)
find_package(ZLIB REQUIRED) find_package(ZLIB REQUIRED)
find_package(freetype CONFIG REQUIRED) find_package(Freetype REQUIRED)
find_package(OpenJPEG CONFIG REQUIRED) find_package(OpenJPEG CONFIG REQUIRED)
find_package(JPEG REQUIRED) find_package(JPEG REQUIRED)
find_package(PNG REQUIRED) find_package(PNG REQUIRED)

View File

@ -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 lcms2::lcms2)
target_link_libraries(Pdf4QtLibCore PRIVATE OpenSSL::SSL OpenSSL::Crypto) target_link_libraries(Pdf4QtLibCore PRIVATE OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(Pdf4QtLibCore PRIVATE ZLIB::ZLIB) 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 openjp2)
target_link_libraries(Pdf4QtLibCore PRIVATE JPEG::JPEG) target_link_libraries(Pdf4QtLibCore PRIVATE JPEG::JPEG)