catkin share directory vs. workspace directory [closed]
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