The package libgeotiff provides a CMake config file:

    find_package(GeoTIFF CONFIG REQUIRED)
    target_include_directories(main PRIVATE ${GEOTIFF_INCLUDE_DIR})
    target_link_libraries(main PRIVATE ${GEOTIFF_LIBRARIES})
