mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 10:37:50 +08:00
65521f7dc3
* [libharu] Update to 2.4.2 I updated the patches for libharu so they apply to 2.4.2 properly. The target name changed from haru to hpdf, the haru imported library is included for backwards compatibility. I added a usage file that only mentions hpdf. I added a patch for VTK so that it compiles with libharu 2.4.x, since the type of one the HPDF_Page_SetDash arguments changed from HPDF_UINT16 to HPDF_REAL. POCO also has an optional libharu dependency when the 'pdf' feature is enabled, but at the moment the PocoPDF library doesn't seem to be built even when enabled. * [wt] Update to 4.8.1 This release fixes compatibility with libharu 2.4.x
33 lines
957 B
Diff
33 lines
957 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index b87af66..10ec58f 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -87,9 +87,26 @@ if(UNIX AND NOT APPLE)
|
|
target_link_libraries (hpdf ${M_LIB})
|
|
endif()
|
|
|
|
+if(LIBHPDF_SHARED)
|
|
+ if(WIN32 AND NOT CYGWIN)
|
|
+ set_target_properties(hpdf PROPERTIES DEFINE_SYMBOL HPDF_DLL_MAKE)
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
+target_include_directories(hpdf PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
|
+
|
|
+add_library(haru INTERFACE)
|
|
+set_property(TARGET haru APPEND PROPERTY INTERFACE_LINK_LIBRARIES hpdf)
|
|
+
|
|
install(
|
|
- TARGETS hpdf
|
|
+ TARGETS hpdf haru
|
|
+ EXPORT unofficial-libharu-config
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
)
|
|
+
|
|
+install(EXPORT unofficial-libharu-config
|
|
+ NAMESPACE unofficial::libharu::
|
|
+ DESTINATION share/unofficial-libharu
|
|
+)
|