ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi all,
As an update I managed to solve the problem. I've added a custom command in the CMake to copy the dll to the correct location after building and this seems to have corrected the process. The modified section of the CMake is updated below.
FIND_LIBRARY(ETHERNET_LIBRARY NAMES EthernetScanner PATHS ${CMAKE_CURRENT_SOURCE_DIR}/lib)
add_custom_command(TARGET sensoor_node POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/lib/EthernetScanner.dll
${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME}/EthernetScanner.dll)
target_link_libraries(sensor_node ${ETHERNET_LIBRARY})