libcroco can be imported via CMake FindPkgConfig module:
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBCROCO libcroco-0.6 IMPORTED_TARGET REQUIRED)
target_link_libraries(main PRIVATE PkgConfig::LIBCROCO)