The package @PORT@:@TARGET_TRIPLET@ provides CMake targets:
find_package (GeographicLib CONFIG REQUIRED)
target_link_libraries (main PRIVATE ${GeographicLib_LIBRARIES})