blob: d9a759a0045198f364b7a132bb8164cd86a131cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d656713..b6a1ee3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,10 +47,10 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Svg Xml PrintSupport TextT
qt_standard_project_setup()
find_package(OpenSSL REQUIRED)
-find_package(lcms REQUIRED)
+find_package(LCMS2 REQUIRED)
find_package(ZLIB REQUIRED)
-find_package(freetype CONFIG REQUIRED)
-find_package(OpenJPEG CONFIG REQUIRED)
+find_package(Freetype REQUIRED)
+find_package(OpenJPEG REQUIRED)
find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
diff --git a/Pdf4QtLib/CMakeLists.txt b/Pdf4QtLib/CMakeLists.txt
index 399deb8..dc49b0d 100644
--- a/Pdf4QtLib/CMakeLists.txt
+++ b/Pdf4QtLib/CMakeLists.txt
@@ -111,10 +111,10 @@ GENERATE_EXPORT_HEADER(Pdf4QtLib
EXPORT_FILE_NAME "${CMAKE_BINARY_DIR}/${INSTALL_INCLUDEDIR}/pdf4qtlib_export.h")
target_link_libraries(Pdf4QtLib PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Xml Qt6::Svg Qt6::OpenGLWidgets)
-target_link_libraries(Pdf4QtLib PRIVATE lcms2::lcms2)
+target_link_libraries(Pdf4QtLib PRIVATE LCMS2::LCMS2)
target_link_libraries(Pdf4QtLib PRIVATE OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(Pdf4QtLib PRIVATE ZLIB::ZLIB)
-target_link_libraries(Pdf4QtLib PRIVATE freetype)
+target_link_libraries(Pdf4QtLib PRIVATE ${FREETYPE_LIBRARIES})
target_link_libraries(Pdf4QtLib PRIVATE openjp2)
target_link_libraries(Pdf4QtLib PRIVATE JPEG::JPEG)
@@ -128,6 +128,7 @@ endif()
target_include_directories(Pdf4QtLib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/sources)
target_include_directories(Pdf4QtLib PUBLIC ${CMAKE_BINARY_DIR}/${INSTALL_INCLUDEDIR})
+target_include_directories(Pdf4QtLib PRIVATE ${FREETYPE_INCLUDE_DIRS})
set_target_properties(Pdf4QtLib PROPERTIES
VERSION ${PDF4QT_VERSION}
|