# Generated by "yarp cmake" & Juan G. Victores 2014

cmake_minimum_required(VERSION 2.6)

set(KEYWORD "RdRobotLib")

find_package(YARP REQUIRED)

include_directories(${YARP_INCLUDE_DIRS})
include_directories(${RD_INCLUDE_DIRS})

add_library(${KEYWORD} RdRobotManager.cpp RdYarpRobotManager.cpp RdMockupRobotManager.cpp)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
install(TARGETS ${KEYWORD} DESTINATION lib)

# Tiny Yarp Plugin library
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpPlugin)

# Exporting dependencies for RDConfig.cmake quite manually for now...
set(RD_INCLUDE_DIRS ${RD_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "appended header dirs") # done in parent
set(RD_LIBRARIES ${RD_LIBRARIES} ${KEYWORD} RdYarp CACHE INTERNAL "appended libraries") # Not for now as it is a header
# WARNING: RdYarp RdSerialServoBoard works, but RdSerialServoBoard RdYarp fails.

yarp_begin_plugin_library(RdYarp)
add_subdirectory(SerialServoBoard)
yarp_end_plugin_library(RdYarp)

yarp_add_plugin_library_executable(testRdYarp RdYarp)
target_link_libraries(testRdYarp ${YARP_LIBRARIES})



# Generated by "yarp cmake" & Juan G. Victores 2014

cmake_minimum_required(VERSION 2.6)

set(KEYWORD "RdRobotLib")

find_package(YARP REQUIRED)

include_directories(${YARP_INCLUDE_DIRS})
include_directories(${RD_INCLUDE_DIRS})

add_library(${KEYWORD} RdRobotManager.cpp RdYarpRobotManager.cpp RdMockupRobotManager.cpp)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
install(TARGETS ${KEYWORD} DESTINATION lib)

# Tiny Yarp Plugin library
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpPlugin)

# Exporting dependencies for RDConfig.cmake quite manually for now...
set(RD_INCLUDE_DIRS ${RD_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "appended header dirs") # done in parent
set(RD_LIBRARIES ${RD_LIBRARIES} ${KEYWORD} RdYarp CACHE INTERNAL "appended libraries") # Not for now as it is a header
# WARNING: RdYarp RdSerialServoBoard works, but RdSerialServoBoard RdYarp fails.

yarp_begin_plugin_library(RdYarp)
add_subdirectory(SerialServoBoard)
yarp_end_plugin_library(RdYarp)

yarp_add_plugin_yarpdev_executable(testRdYarp RdYarp)
target_link_libraries(testRdYarp ${YARP_LIBRARIES})



Update to avoid YARP depreciation warning: s/yarp_add_plugin_library_executable/yarp_add_plugin_yarpdev_executable/g
Update to avoid YARP depreciation warning: s/yarp_add_plugin_library_executable/yarp_add_plugin_yarpdev_executable/g
