![]() | 1 | initial version |
I'm assuming this is the CMakeLists.txt
of package B
.
Thus, the install(..
part makes no sense. Why would you want to install something from INSIDE package B
? Do you have a layout like B/include/A
? Also, what do you expect ${A}
do contain? This variable should not be set anywhere in here.
The same holds for the add_library
call. Why do you, in package B
want to build a package in A
.
The answer you cite is correct, so please follow this.
A
:
A
(actually, not even required)catkin_package
call (check out the template when you create a new package) B
:
build_depend
to pkg A
find_package
package A
include_directories(${catkin_INCLUDE_DIRS})
B
code${catkin_LIBRARIES}