ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi jarvisschultz! Please forgive my ignorance. I'm new to ROS. Here is how I understand this:
1 find_package(PkgConfig)
2
3 pkg_check_modules(BFL REQUIRED bfl)
4
5 message("BFL include dirs:" ${BFL_INCLUDE_DIRS})
6 message("BFL library dirs:" ${BFL_LIBRARY_DIRS})
7
8 include_directories(${BFL_INCLUDE_DIRS})
9 link_directories(${BFL_LIBRARY_DIRS})
10
11 [..]
12
13 # for every target using BFL:
14 target_link_libraries(your_executable ${BFL_LIBRARIES})
I just insert the above code from line.1 to line.9 to the top-level CMakeLists.txt in src folder in which all of ROS packages reside. And the line.14 should be in the CMakeLists.txt of the specific package which uses bfl(which is robot_pose_ekf in my case). Is this right? And my question is I'm not sure in what detailed line in the txt file(s) should I insert. Thank you.
2 | No.2 Revision |
Hi jarvisschultz! Please forgive my ignorance. I'm new to ROS. Here is how I understand this:
1 find_package(PkgConfig)
2
3 pkg_check_modules(BFL REQUIRED bfl)
4
5 message("BFL include dirs:" ${BFL_INCLUDE_DIRS})
6 message("BFL library dirs:" ${BFL_LIBRARY_DIRS})
7
8 include_directories(${BFL_INCLUDE_DIRS})
9 link_directories(${BFL_LIBRARY_DIRS})
10
11 [..]
12
13 # for every target using BFL:
14 target_link_libraries(your_executable ${BFL_LIBRARIES})
I just insert the above code from line.1 to line.9 to the top-level CMakeLists.txt in src folder in which all of ROS packages reside. And the line.14 should be in the CMakeLists.txt of the specific package which uses bfl(which is robot_pose_ekf in my case).
Is this right? And my question is I'm not sure in what detailed line in the txt file(s) should I insert. insert them. Thank you.