Skip to content

Commit

Permalink
cmake: use find_package for soem
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Smits <[email protected]>
  • Loading branch information
Ruben Smits committed May 2, 2014
1 parent 3d6d21f commit ece2551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion soem_beckhoff_drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ if(ORO_USE_ROSBUILD)
endif()

ros_generate_rtt_typekit(soem_beckhoff_drivers)

find_package(soem REQUIRED)
include_directories(${soem_INCLUDE_DIRS})

orocos_use_package(soem_master)
orocos_use_package(soem)

orocos_plugin(soem_el1xxx src/soem_beckhoff_drivers.cpp src/soem_el1xxx.cpp)
orocos_plugin(soem_el2xxx src/soem_beckhoff_drivers.cpp src/soem_el2xxx.cpp)
Expand Down
8 changes: 5 additions & 3 deletions soem_master/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ find_package(OROCOS-RTT REQUIRED ${RTT_HINTS} )
# documentation.
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)

orocos_use_package(soem)
find_package(soem REQUIRED)
include_directories(${soem_INCLUDE_DIRS})

#common commands for building c++ executables and libraries
orocos_library(soem_driver_factory soem_driver_factory.cpp)
orocos_component(soem_master soem_master_component.cpp)
target_link_libraries(soem_master soem_driver_factory)
orocos_component(soem_master soem_master_component.cpp)
target_link_libraries(soem_master soem_driver_factory ${soem_LIBRARIES})

orocos_plugin(soem_plugin soem_plugin.cpp)

Expand Down

0 comments on commit ece2551

Please sign in to comment.