Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some plugins to subfolders #415

Merged
merged 3 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 3 additions & 117 deletions delphyne_gui/visualizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -337,123 +337,6 @@ install(
ARCHIVE DESTINATION lib
)

#-------------------------------------------------------------------------------
# Teleop Plugin (ign-gui 3)
QT5_WRAP_CPP(TeleopPlugin_headers_MOC teleop_plugin.h)
QT5_ADD_RESOURCES(TeleopPlugin_RCC teleop_plugin.qrc)

add_library(TeleopPlugin
${CMAKE_CURRENT_SOURCE_DIR}/teleop_plugin.cc
${TeleopPlugin_headers_MOC}
${TeleopPlugin_RCC}
)
add_library(delphyne_gui::TeleopPlugin ALIAS TeleopPlugin)
set_target_properties(TeleopPlugin
PROPERTIES
OUTPUT_NAME TeleopPlugin
)

target_link_libraries(TeleopPlugin
PUBLIC
ignition-gui3::ignition-gui3
ignition-common3::ignition-common3
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
PRIVATE
ignition-plugin1::register
)

install(
TARGETS TeleopPlugin
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

#-------------------------------------------------------------------------------
# TopicsStats Plugin (ign-gui 3)
QT5_WRAP_CPP(TopicsStats_headers_MOC topics_stats.hh)
QT5_ADD_RESOURCES(TopicsStats_RCC topics_stats.qrc)

add_library(TopicsStats
${CMAKE_CURRENT_SOURCE_DIR}/topics_stats.cc
${TopicsStats_headers_MOC}
${TopicsStats_RCC}
)
add_library(delphyne_gui::TopicsStats ALIAS TopicsStats)
set_target_properties(TopicsStats
PROPERTIES
OUTPUT_NAME TopicsStats
)

target_link_libraries(TopicsStats
PUBLIC
ignition-gui3::ignition-gui3
ignition-common3::ignition-common3
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
PRIVATE
ignition-plugin1::register
)

install(
TARGETS TopicsStats
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

#-------------------------------------------------------------------------------

# PlaybackWidget (ign-gui 3)
QT5_WRAP_CPP(PlaybackPlugin_MOC playback_plugin.hh)
QT5_ADD_RESOURCES(PlaybackPlugin_resources_RCC PlaybackPlugin.qrc)

add_library(PlaybackPlugin
${CMAKE_CURRENT_SOURCE_DIR}/playback_plugin.cc
${PlaybackPlugin_MOC}
${PlaybackPlugin_resources_RCC}
)
add_library(delphyne_gui::PlaybackPlugin ALIAS PlaybackPlugin)
set_target_properties(PlaybackPlugin
PROPERTIES
OUTPUT_NAME PlaybackPlugin
)

ament_target_dependencies(PlaybackPlugin
"maliput"
)

target_link_libraries(PlaybackPlugin
PUBLIC
ignition-common3::ignition-common3
ignition-gui3::ignition-gui3
ignition-msgs5::ignition-msgs5
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Qml_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
delphyne::public_headers
maliput::common
PRIVATE
ignition-plugin1::register
)

install(
TARGETS PlaybackPlugin
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

#-------------------------------------------------------------------------------

# Visualizer with ign-gui0
Expand Down Expand Up @@ -531,7 +414,10 @@ install(
)

add_subdirectory(display_plugins)
add_subdirectory(playback_plugin)
add_subdirectory(teleop_plugin)
add_subdirectory(topic_interface_plugin)
add_subdirectory(topics_stats)

if(BUILD_TESTING)
add_subdirectory(test)
Expand Down
49 changes: 49 additions & 0 deletions delphyne_gui/visualizer/playback_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
include_directories(
${Qt5Core_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}
)

#-------------------------------------------------------------------------------
# PlaybackWidget (ign-gui 3)
QT5_WRAP_CPP(PlaybackPlugin_MOC playback_plugin.hh)
QT5_ADD_RESOURCES(PlaybackPlugin_resources_RCC PlaybackPlugin.qrc)

add_library(PlaybackPlugin
${CMAKE_CURRENT_SOURCE_DIR}/playback_plugin.cc
${PlaybackPlugin_MOC}
${PlaybackPlugin_resources_RCC}
)
add_library(delphyne_gui::PlaybackPlugin ALIAS PlaybackPlugin)
set_target_properties(PlaybackPlugin
PROPERTIES
OUTPUT_NAME PlaybackPlugin
)

ament_target_dependencies(PlaybackPlugin
"maliput"
)

target_link_libraries(PlaybackPlugin
PUBLIC
ignition-common3::ignition-common3
ignition-gui3::ignition-gui3
ignition-msgs5::ignition-msgs5
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Qml_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
delphyne::public_headers
maliput::common
PRIVATE
ignition-plugin1::register
)

install(
TARGETS PlaybackPlugin
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
41 changes: 41 additions & 0 deletions delphyne_gui/visualizer/teleop_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
include_directories(
${Qt5Core_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}
)

#-------------------------------------------------------------------------------
# Teleop Plugin (ign-gui 3)
QT5_WRAP_CPP(TeleopPlugin_headers_MOC teleop_plugin.h)
QT5_ADD_RESOURCES(TeleopPlugin_RCC teleop_plugin.qrc)

add_library(TeleopPlugin
${CMAKE_CURRENT_SOURCE_DIR}/teleop_plugin.cc
${TeleopPlugin_headers_MOC}
${TeleopPlugin_RCC}
)
add_library(delphyne_gui::TeleopPlugin ALIAS TeleopPlugin)
set_target_properties(TeleopPlugin
PROPERTIES
OUTPUT_NAME TeleopPlugin
)

target_link_libraries(TeleopPlugin
PUBLIC
ignition-gui3::ignition-gui3
ignition-common3::ignition-common3
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
PRIVATE
ignition-plugin1::register
)

install(
TARGETS TeleopPlugin
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
41 changes: 41 additions & 0 deletions delphyne_gui/visualizer/topics_stats/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
include_directories(
${Qt5Core_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}
)

#-------------------------------------------------------------------------------
# TopicsStats Plugin (ign-gui 3)
QT5_WRAP_CPP(TopicsStats_headers_MOC topics_stats.hh)
QT5_ADD_RESOURCES(TopicsStats_RCC topics_stats.qrc)

add_library(TopicsStats
${CMAKE_CURRENT_SOURCE_DIR}/topics_stats.cc
${TopicsStats_headers_MOC}
${TopicsStats_RCC}
)
add_library(delphyne_gui::TopicsStats ALIAS TopicsStats)
set_target_properties(TopicsStats
PROPERTIES
OUTPUT_NAME TopicsStats
)

target_link_libraries(TopicsStats
PUBLIC
ignition-gui3::ignition-gui3
ignition-common3::ignition-common3
ignition-transport8::ignition-transport8
${Qt5Core_LIBRARIES}
${Qt5Widgets_LIBRARIES}
delphyne::protobuf_messages
PRIVATE
ignition-plugin1::register
)

install(
TARGETS TopicsStats
EXPORT ${PROJECT_NAME}-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)