使用 cmake 安装 libzippp 库不起作用

Installing libzippp library with cmake not working

尝试安装 libzippp library in this project 由于某种原因无法正常工作,这是我项目的 CMakeLists.txt:

CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
project(startProject)
set(Leptonica_DIR /Users/alejandrocamba/Documents/leptonica/build)

find_package(OpenCV REQUIRED)
find_package(Leptonica REQUIRED)
find_package(Tesseract REQUIRED)
find_package(libzippp 3.0 REQUIRED)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${Leptonica_INCLUDE_DIRS})
include_directories(${Tesseract_INCLUDE_DIRS})

add_executable(startProject main.cpp)
target_link_libraries(startProject libzipp::libzipp)
target_link_libraries(startProject ${OpenCV_LIBS})
target_link_libraries(startProject ${Tesseract_LIBRARIES})

我遇到错误:

ld: library not found for -llibzipp::libzipp

我已经按照说明克隆了存储库并成功安装了它,所以如果我这样做 make install 我得到:

但我似乎找不到在我的项目中使用它的方法,我需要帮助让它在我的项目中运行!

需要更多 p:link 的正确目标名称是 libzippp::libzippp

project's README 错误地建议使用 libzipp::libzipp