mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 00:19:22 +08:00
29 lines
967 B
Diff
29 lines
967 B
Diff
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
|
|
index 854674d..f61a294 100644
|
|
--- a/backend/CMakeLists.txt
|
|
+++ b/backend/CMakeLists.txt
|
|
@@ -47,7 +47,7 @@ endif()
|
|
if(ZINT_USE_PNG AND PNG_FOUND)
|
|
zint_target_link_libraries(PNG::PNG)
|
|
else()
|
|
- zint_target_compile_definitions(PUBLIC NO_PNG)
|
|
+ zint_target_compile_definitions(PRIVATE NO_PNG)
|
|
endif()
|
|
|
|
if(ZINT_TEST)
|
|
@@ -63,7 +63,13 @@ if(MSVC)
|
|
target_compile_definitions(zint PRIVATE DLL_EXPORT)
|
|
endif()
|
|
|
|
-install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
+target_include_directories(zint PUBLIC
|
|
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
+ $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
|
|
+)
|
|
+
|
|
+install(TARGETS zint EXPORT unofficial-zint-targets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
+install(EXPORT unofficial-zint-targets NAMESPACE unofficial::zint:: DESTINATION share/unofficial-zint)
|
|
if(ZINT_STATIC)
|
|
install(TARGETS zint-static ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
endif()
|