summaryrefslogtreecommitdiff
path: root/lib/luahpdf.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/luahpdf.cmake')
-rw-r--r--lib/luahpdf.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/luahpdf.cmake b/lib/luahpdf.cmake
index a7cd7ef..d8019b5 100644
--- a/lib/luahpdf.cmake
+++ b/lib/luahpdf.cmake
@@ -8,9 +8,9 @@ FIND_PACKAGE(PNG REQUIRED)
ADD_LIBRARY(luahpdf STATIC hpdf.c)
-TARGET_LINK_LIBRARIES(luahpdf PUBLIC ${hpdfs} lua ZLIB::ZLIB PNG::PNG)
+TARGET_LINK_LIBRARIES(luahpdf PUBLIC ${hpdfs} lua ZLIB::ZLIB ${PNG_LIBRARIES})
-TARGET_INCLUDE_DIRECTORIES(luahpdf PUBLIC ${CMAKE_INSTALL_PREFIX}/include)
+TARGET_INCLUDE_DIRECTORIES(luahpdf PUBLIC ${CMAKE_INSTALL_PREFIX}/include ${PNG_INCLUDE_DIRS})
INSTALL(TARGETS luahpdf EXPORT luahpdf-targets DESTINATION lib)