The package poppler can be imported via CMake FindPkgConfig module: include(FindPkgConfig) pkg_check_modules(POPPLER_CPP REQUIRED IMPORTED_TARGET poppler-cpp) target_link_libraries(main PRIVATE PkgConfig::poppler-cpp)