Skip to content

Commit c69844a

Browse files
committed
yarp plugin in progress
1 parent e29f065 commit c69844a

File tree

12 files changed

+51
-37
lines changed

12 files changed

+51
-37
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ icubcontrib_set_default_prefix()
2323
add_definitions(${YARP_DEFINES})
2424

2525
add_subdirectory(lib)
26-
#add_subdirectory(yarp-plugin)
26+
add_subdirectory(plugins)
2727
add_subdirectory(modules)
2828

2929
icubcontrib_finalize_export(logpolar)
File renamed without changes.

plugins/logpolarClient/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright: (C) 2015 iCub Facility - Istituto Italiano di Tecnologia
2+
# Authors: Ugo Pattacini
3+
# CopyPolicy: Released under the terms of the GNU GPL v3.0.
4+
5+
yarp_prepare_device(logpolarclient TYPE yarp::dev::ClientLogpolarFrameGrabber
6+
INCLUDE yarp/dev/ClientLogpolarFrameGrabber.h)
7+
8+
if(ENABLE_logpolarclient)
9+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../logpolarGrabber
10+
${logpolar_INCLUDE_DIRS}
11+
${YARP_INCLUDE_DIRS})
12+
13+
yarp_add_plugin(logpolarclient ClientLogpolarFrameGrabber.cpp)
14+
15+
target_link_libraries(logpolarclient logpolar ${YARP_LIBRARIES})
16+
17+
yarp_install(FILES logpolarclient.ini
18+
DESTINATION ${ICUBCONTRIB_PLUGIN_MANIFESTS_INSTALL_DIR})
19+
20+
yarp_install(TARGETS logpolarclient
21+
EXPORT logpolar
22+
COMPONENT Runtime
23+
LIBRARY DESTINATION ${ICUBCONTRIB_DYNAMIC_PLUGINS_INSTALL_DIR}
24+
ARCHIVE DESTINATION ${ICUBCONTRIB_STATIC_PLUGINS_INSTALL_DIR})
25+
endif()
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright: (C) 2015 iCub Facility - Istituto Italiano di Tecnologia
2+
# Authors: Ugo Pattacini
3+
# CopyPolicy: Released under the terms of the GNU GPL v3.0.
4+
5+
yarp_prepare_device(logpolargrabber TYPE yarp::dev::ServerLogpolarFrameGrabber
6+
INCLUDE yarp/dev/ServerLogpolarFrameGrabber.h
7+
WRAPPER logpolargrabber)
8+
9+
if(ENABLE_logpolargrabber)
10+
include_directories(${logpolar_INCLUDE_DIRS} ${YARP_INCLUDE_DIRS})
11+
12+
yarp_add_plugin(logpolargrabber ServerLogpolarFrameGrabber.cpp
13+
yarp/dev/ServerLogpolarFrameGrabber.h)
14+
15+
target_link_libraries(logpolargrabber logpolar ${YARP_LIBRARIES})
16+
17+
yarp_install(FILES logpolargrabber.ini
18+
DESTINATION ${ICUBCONTRIB_PLUGIN_MANIFESTS_INSTALL_DIR})
19+
20+
yarp_install(TARGETS logpolargrabber
21+
EXPORT logpolar
22+
COMPONENT Runtime
23+
LIBRARY DESTINATION ${ICUBCONTRIB_DYNAMIC_PLUGINS_INSTALL_DIR}
24+
ARCHIVE DESTINATION ${ICUBCONTRIB_STATIC_PLUGINS_INSTALL_DIR})
25+
endif()

yarp-plugin/logpolarClient/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

yarp-plugin/logpolarGrabber/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)