Skip to content

Commit

Permalink
fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 5, 2024
1 parent ee098a4 commit fbb9d1c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
84 changes: 42 additions & 42 deletions plotjuggler_plugins/DataStreamMQTT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@

if(BUILDING_WITH_VCPKG)
message(STATUS "Finding MOSQUITTO with vcpkg")
find_package(mosquitto CONFIG REQUIRED)
set(MOSQUITTO_FOUND ON)
elseif(BUILDING_WITH_CONAN)
message(STATUS "Finding MOSQUITTO with conan")
find_package(mosquitto REQUIRED)
set(MOSQUITTO_FOUND ON)
set(MOSQUITTO_LIBS mosquitto::mosquitto)
if(BUILDING_WITH_CONAN)
message(STATUS "Finding MOSQUITTO with conan")
find_package(mosquitto REQUIRED)
set(MOSQUITTO_FOUND ON)
else()
message(STATUS "Finding MOSQUITTO without package managers")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
find_package(Mosquitto REQUIRED)
set(MOSQUITTO_LIBS ${MOSQUITTO_LIBRARIES})
include_directories( ${MOSQUITTO_INCLUDE_DIR} )
message(STATUS "Finding MOSQUITTO without package managers")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
find_package(Mosquitto REQUIRED)
endif()

if(MOSQUITTO_FOUND)

message(STATUS "[MOSQUITTO] found.")
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)

QT5_WRAP_UI ( UI_SRC datastream_mqtt.ui )

SET( SRC
datastream_mqtt.h
datastream_mqtt.cpp
mqtt_dialog.h
mqtt_dialog.cpp
mqtt_client.h
mqtt_client.cpp
)

add_library(DataStreamMQTT_Mosquitto SHARED ${SRC} ${UI_SRC} )

target_link_libraries(DataStreamMQTT_Mosquitto
${Qt5Widgets_LIBRARIES}
Qt5::Network
Qt5::Svg
${MOSQUITTO_LIBS}
plotjuggler_base
)

install(TARGETS DataStreamMQTT_Mosquitto
DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} )
message(STATUS "[MOSQUITTO] found.")
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)

QT5_WRAP_UI ( UI_SRC datastream_mqtt.ui )

SET( SRC
datastream_mqtt.h
datastream_mqtt.cpp
mqtt_dialog.h
mqtt_dialog.cpp
mqtt_client.h
mqtt_client.cpp
)

add_library(DataStreamMQTT_Mosquitto SHARED ${SRC} ${UI_SRC} )

target_link_libraries(DataStreamMQTT_Mosquitto
${Qt5Widgets_LIBRARIES}
Qt5::Network
Qt5::Svg
plotjuggler_base
)

if(BUILDING_WITH_CONAN)
target_link_libraries(DataStreamMQTT_Mosquitto mosquitto::mosquitto)
else()
target_link_libraries(DataStreamMQTT_Mosquitto ${MOSQUITTO_LIBRARIES})
target_include_directories(DataStreamMQTT_Mosquitto
PUBLIC ${MOSQUITTO_INCLUDE_DIR})
endif()

install(TARGETS DataStreamMQTT_Mosquitto
DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} )

else()
message("[MOSQUITTO] not found. Skipping plugin DataStreamMQTT.")
message("[MOSQUITTO] not found. Skipping plugin DataStreamMQTT.")
endif()


2 changes: 1 addition & 1 deletion plotjuggler_plugins/DataStreamZMQ/datastream_zmq.ui
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<bold>true</bold>
Expand Down
2 changes: 1 addition & 1 deletion plotjuggler_plugins/ToolboxQuaternion/quaternion_to_rpy.ui
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="frame">
<widget class="QFrame" name="frame_1">
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
Expand Down

0 comments on commit fbb9d1c

Please sign in to comment.