--- test/CMakeLists.txt.orig	2025-05-09 17:43:17 UTC
+++ test/CMakeLists.txt
@@ -61,7 +61,7 @@ if (NOT CMAKE_CROSSCOMPILING OR EMSCRIPTEN)
   target_include_directories(run_all_tests PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
   target_include_directories(test-tdutils PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
   target_link_libraries(test-tdutils PRIVATE tdutils)
-  target_link_libraries(run_all_tests PRIVATE tdcore tdclient)
+  target_link_libraries(run_all_tests PRIVATE tdcore tdclient tdmtproto)
   target_link_libraries(test-online PRIVATE tdcore tdjson_private tdclient tdutils tdactor)
 
   if (CLANG)
