The package collection provides CMake targets:
find_package(collection CONFIG REQUIRED)
target_link_libraries(main PRIVATE collection::collection)