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

catkin share directory vs. workspace directory

$
0
0
Hi, How can I set a variable inside my CMakeLists.txt to set a variable to point to a file into the workspace which also points to the same file but in the share directory when installed. Example: I want to install a "foo.c" inside my_package/src/. Now when installed, it should be in the same directory as the files in the package but in the share folder, so that other later workspaces can compile the source file into there code with a macro this way: add_executable(foo_node ... ${MY_PACKAGE_SOURCE}) Thanks, Regards, Christian

Viewing all articles
Browse latest Browse all 417

Latest Images

Trending Articles



Latest Images

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