Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 69

Include Header file from another package - Indigo

$
0
0
Hi folks, I have a file called (every name here is FAKE) file.h from the package named "my_package." Now, main.cpp located inside package named "the_package" needs to include the library in this manner: #include but "the_package" cannot find file.h How do I make catkin allow "the_package" to find file.h **without** having to do something like: #include "../../../my_package/file.h" I am assuming I have to do it in my CMakeList.txt, but using find_package() nor find_package(catkin Required ...) are doing it. Every package is located inside my "catkin_ws" workspace. What is the proper way? Thanks

Viewing all articles
Browse latest Browse all 69

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>