By not providing "FindTrantor.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Trantor", but
CMake did not find one.
Could not find a package configuration file provided by "Trantor" with any
of the following names:
TrantorConfig.cmake
trantor-config.cmake
Add the installation prefix of "Trantor" to CMAKE_PREFIX_PATH or set
"Trantor_DIR" to a directory containing one of the above files. If
"Trantor" provides a separate development package or SDK, be sure it has
been installed.
原因:没有set Trantor_DIR
解决方案:打开CMakeLists.txt然后在
cmake_minimum_required(VERSION 3.19)
这一行的下面加入
SET(Trantor_DIR “D:/C++/vcpkg/packages/trantor_x86-windows/share/trantor”)
由于使用的是vcpkg,一般包的路径内,share文件夹是cmakefile的存在地,含有<包名>Config.cmake这样的文件