问题描述
CMake Error at test/CMakeLists.txt:7 (find_package):
By not providing “Findtest_msgs.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“test_msgs”, but CMake did not find one.
Could not find a package configuration file provided by “test_msgs” with
any of the following names:
test_msgsConfig.cmake
test_msgs-config.cmake
Add the installation prefix of “test_msgs” to CMAKE_PREFIX_PATH or set
“test_msgs_DIR” to a directory containing one of the above files. If
“test_msgs” provides a separate development package or SDK, be sure it has
been installed.
解决方法
安装依赖库文件
sudo apt install ros-foxy-test-msgs
sudo apt-get install ros-[对应ros版本]-geographic-msgs
查看ros版本
rosversion -d