-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add libftdi mapping * kobuki and sainsmart-relay-usb * Update vinca_linux_64.yaml * Create ros-noetic-kobuki-ftdi.patch * Fix patch * Add sainsmart-relay-usb patch * Update vinca_linux_64.yaml * Update dependencies.yaml * Update vinca_linux_64.yaml * Update ros-noetic-sainsmart-relay-usb.patch * Update vinca_linux_64.yaml * Update vinca_linux_64.yaml * Fixes
- Loading branch information
1 parent
6505517
commit bd97e94
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 9bd1118..e9cc910 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -6,18 +6,23 @@ find_package(catkin REQUIRED COMPONENTS | ||
std_msgs | ||
) | ||
|
||
+find_package(PkgConfig) | ||
+pkg_check_modules(udev REQUIRED libudev) | ||
+pkg_check_modules(ftdi REQUIRED libftdi1) | ||
catkin_package() | ||
|
||
include_directories( | ||
${catkin_INCLUDE_DIRS} | ||
+ ${ftdi_INCLUDE_DIRS} | ||
+ ${udev_INCLUDE_DIRS} | ||
) | ||
|
||
add_executable(${PROJECT_NAME}_node src/RelayNode.cpp src/node.cpp) | ||
-target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ftdi) | ||
+target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${ftdi_LIBRARIES} ${udev_LIBRARIES}) | ||
set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME relay_node PREFIX "") | ||
|
||
add_executable(${PROJECT_NAME}_list src/list.cpp) | ||
-target_link_libraries(${PROJECT_NAME}_list ${catkin_LIBRARIES} ftdi) | ||
+target_link_libraries(${PROJECT_NAME}_list ${catkin_LIBRARIES} ${ftdi_LIBRARIES} ${udev_LIBRARIES}) | ||
set_target_properties(${PROJECT_NAME}_list PROPERTIES OUTPUT_NAME list PREFIX "") | ||
|
||
install(TARGETS ${PROJECT_NAME}_node ${PROJECT_NAME}_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters