mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 07:19:24 +08:00
66 lines
2.8 KiB
Diff
66 lines
2.8 KiB
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 3d7e852..1fab56c 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -27,36 +27,36 @@ if (BUILD_SHARED_LIBS)
|
|
endif()
|
|
|
|
if (GIF_LIBRARIES)
|
|
- target_include_directories (leptonica PUBLIC ${GIF_INCLUDE_DIR})
|
|
- target_link_libraries (leptonica ${GIF_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${GIF_INCLUDE_DIR})
|
|
+ target_link_libraries (leptonica PRIVATE ${GIF_LIBRARIES})
|
|
endif()
|
|
if (JPEG_LIBRARIES)
|
|
- target_include_directories (leptonica PUBLIC ${JPEG_INCLUDE_DIR})
|
|
- target_link_libraries (leptonica ${JPEG_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${JPEG_INCLUDE_DIR})
|
|
+ target_link_libraries (leptonica PRIVATE ${JPEG_LIBRARIES})
|
|
endif()
|
|
if (JP2K_FOUND)
|
|
- target_include_directories (leptonica PUBLIC ${JP2K_INCLUDE_DIRS})
|
|
- target_link_libraries (leptonica ${JP2K_LINK_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${JP2K_INCLUDE_DIRS})
|
|
+ target_link_libraries (leptonica PRIVATE ${JP2K_LINK_LIBRARIES})
|
|
endif()
|
|
if (PNG_LIBRARIES)
|
|
- target_include_directories (leptonica PUBLIC ${PNG_INCLUDE_DIRS})
|
|
- target_link_libraries (leptonica ${PNG_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${PNG_INCLUDE_DIRS})
|
|
+ target_link_libraries (leptonica PRIVATE ${PNG_LIBRARIES})
|
|
endif()
|
|
if (TIFF_LIBRARIES)
|
|
- target_include_directories (leptonica PUBLIC ${TIFF_INCLUDE_DIR})
|
|
- target_link_libraries (leptonica ${TIFF_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${TIFF_INCLUDE_DIR})
|
|
+ target_link_libraries (leptonica PRIVATE ${TIFF_LIBRARIES})
|
|
endif()
|
|
if (WEBP_FOUND)
|
|
- target_include_directories (leptonica PUBLIC ${WEBP_INCLUDE_DIRS})
|
|
- target_link_libraries (leptonica ${WEBP_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${WEBP_INCLUDE_DIRS})
|
|
+ target_link_libraries (leptonica PRIVATE ${WEBP_LIBRARIES})
|
|
endif()
|
|
if (ZLIB_LIBRARIES)
|
|
- target_include_directories (leptonica PUBLIC ${ZLIB_INCLUDE_DIRS})
|
|
- target_link_libraries (leptonica ${ZLIB_LIBRARIES})
|
|
+ target_include_directories (leptonica PRIVATE ${ZLIB_INCLUDE_DIRS})
|
|
+ target_link_libraries (leptonica PRIVATE ${ZLIB_LIBRARIES})
|
|
endif()
|
|
|
|
if (UNIX)
|
|
- target_link_libraries (leptonica m)
|
|
+ target_link_libraries (leptonica PRIVATE m)
|
|
set(lib ${CMAKE_SHARED_LIBRARY_PREFIX})
|
|
set(dll ${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
set(old_target ${lib}lept${dll})
|
|
@@ -72,7 +72,7 @@ endif()
|
|
if (NOT SW_BUILD)
|
|
export(TARGETS leptonica FILE ${CMAKE_BINARY_DIR}/LeptonicaTargets.cmake)
|
|
else()
|
|
- target_link_libraries (leptonica
|
|
+ target_link_libraries (leptonica PRIVATE
|
|
org.sw.demo.gif
|
|
org.sw.demo.jpeg
|
|
org.sw.demo.glennrp.png
|