mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 19:19:01 +08:00
72cdfe25ee
* update to 2.4.0-rc1 * update vtk vcpkg.json file * export targets * update patch * update patch * Fix FindLibHaru in vtk * update ports/vtk/FindLibHaru.patch * update patch * fix find libharu
30 lines
889 B
Diff
30 lines
889 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 4ca0f14..02ad1ab 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -87,9 +87,23 @@ if(UNIX AND NOT APPLE)
|
|
target_link_libraries (haru ${M_LIB})
|
|
endif()
|
|
|
|
+if(LIBHPDF_SHARED)
|
|
+ if(WIN32 AND NOT CYGWIN)
|
|
+ set_target_properties(haru PROPERTIES DEFINE_SYMBOL HPDF_DLL_MAKE)
|
|
+ endif(WIN32 AND NOT CYGWIN)
|
|
+endif(LIBHPDF_SHARED)
|
|
+
|
|
+target_include_directories(haru PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
|
+
|
|
install(
|
|
- TARGETS
|
|
+ TARGETS 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
|
|
+)
|