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

Small fixes for building with catkin_tools #6

Merged
merged 2 commits into from
Oct 25, 2016
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
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8)

find_package(Qt5 REQUIRED COMPONENTS Core Widgets PrintSupport Concurrent Xml)

find_package(catkin QUIET)
if(catkin_FOUND)
message("--------------------------------------------------------------------")
message("PlotJuggler is being built using CATKIN. ROS plugin will be compiled")
Expand All @@ -20,9 +21,8 @@ if(catkin_FOUND)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS ros_type_introspection
DEPENDS system_lib
DEPENDS
)

endif()


Expand Down Expand Up @@ -55,7 +55,6 @@ elseif()
endif()


add_subdirectory( common)
add_subdirectory( color_widgets )
add_subdirectory( qwt/src )
add_subdirectory( plotter_gui )
Expand Down
2 changes: 1 addition & 1 deletion color_widgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SET( CW_SRC
src/swatch.cpp
)

add_library(colorwidgets ${CW_SRC})
add_library(colorwidgets STATIC ${CW_SRC})

target_link_libraries(colorwidgets
${Qt5Widgets_LIBRARIES} )
6 changes: 0 additions & 6 deletions common/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion common/plotdata.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion plotter_gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ if(catkin_FOUND)
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
elseif()
install(TARGETS PlotJuggler DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS PlotJuggler DESTINATION bin )
endif()
2 changes: 1 addition & 1 deletion plugins/DataLoadCSV/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ if(catkin_FOUND)
LIBRARY DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )
elseif()
install(TARGETS DataLoadCSV DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS DataLoadCSV DESTINATION bin )
endif()
2 changes: 1 addition & 1 deletion plugins/DataLoadFB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ if(catkin_FOUND)
LIBRARY DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )
elseif()
install(TARGETS DataLoadFB DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS DataLoadFB DESTINATION bin )
endif()
2 changes: 1 addition & 1 deletion plugins/DataStreamSample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if(catkin_FOUND)
LIBRARY DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )
elseif()
install(TARGETS DataStreamSample DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS DataStreamSample DESTINATION bin )
endif()
1 change: 1 addition & 0 deletions plugins/DataStreamSample/datastream_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <mutex>
#include <chrono>
#include <thread>
#include <math.h>

DataStreamSample::DataStreamSample()
{
Expand Down
21 changes: 13 additions & 8 deletions plugins/ROS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ QT5_WRAP_UI ( COMMON_UI_SRC
)

add_library( commonROS STATIC ${COMMON_SRC} ${COMMON_UI_SRC} )
target_link_libraries( commonROS
${Qt5Widgets_LIBRARIES}
${Qt5Xml_LIBRARIES}
${catkin_LIBRARIES}
)



Expand All @@ -43,14 +48,14 @@ QT5_WRAP_UI ( DATALOAD_UI_SRC
)

add_library( DataLoadROS SHARED ${DATALOAD_SRC} ${DATALOAD_UI_SRC} )
target_link_libraries( DataLoadROS ${catkin_LIBRARIES} commonROS)
target_link_libraries( DataLoadROS commonROS)

add_dependencies(DataLoadROS
add_dependencies(DataLoadROS
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)

#############
#############
SET( DATASTREAM_SRC
DataStreamROS/datastream_ROS.cpp
DataStreamROS/datastream_ROS.h
Expand All @@ -62,14 +67,14 @@ QT5_WRAP_UI ( DATASTREAM_UI_SRC
DataStreamROS/rostopicselector.ui )

add_library( DataStreamROS SHARED ${DATASTREAM_SRC} ${DATASTREAM_UI_SRC} )
target_link_libraries( DataStreamROS ${catkin_LIBRARIES} commonROS )
target_link_libraries( DataStreamROS commonROS )

add_dependencies(DataStreamROS
add_dependencies(DataStreamROS
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)

#############
#############
SET( PUBLISHER_SRC
TopicPublisherROS/statepublisher_rostopic.cpp
TopicPublisherROS/statepublisher_rostopic.h
Expand All @@ -80,7 +85,7 @@ QT5_WRAP_UI ( PUBLISHER_UI_SRC )
add_library( RosTopicPublisher SHARED ${PUBLISHER_SRC} ${PUBLISHER_UI_SRC} )
target_link_libraries( RosTopicPublisher ${catkin_LIBRARIES} commonROS )

add_dependencies(RosTopicPublisher
add_dependencies(RosTopicPublisher
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)
Expand All @@ -102,5 +107,5 @@ if(catkin_FOUND)
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
elseif()
install(TARGETS DataLoadROS DataStreamROS RosTopicPublisher DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS DataLoadROS DataStreamROS RosTopicPublisher DESTINATION bin )
endif()
2 changes: 1 addition & 1 deletion qwt
Submodule qwt updated 1 files
+1 −1 src/CMakeLists.txt