forked from facontidavide/PlotJuggler
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI upstream failure fix after macos build fix issue
- Loading branch information
1 parent
9a2ada0
commit 2e953ec
Showing
8 changed files
with
30 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,4 +110,4 @@ | |
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,33 @@ | ||
# Check for vcpkg, conan, or manual build environments | ||
if(BUILDING_WITH_VCPKG) | ||
message(STATUS "Finding ZeroMQ with vcpkg") | ||
elseif(BUILDING_WITH_CONAN) | ||
message(STATUS "Finding ZeroMQ with conan") | ||
else() | ||
message(STATUS "Finding ZeroMQ without package managers") | ||
|
||
# Find ZeroMQ using PkgConfig | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(ZMQ REQUIRED libzmq) | ||
|
||
# Set the ZeroMQ libraries and include directories for manual configuration | ||
set(ZeroMQ_LIBRARIES ${ZMQ_LIBRARIES}) | ||
set(ZeroMQ_INCLUDE_DIRS ${ZMQ_INCLUDE_DIRS}) | ||
set(ZeroMQ_LIBRARY_DIRS /opt/homebrew/lib) # Add this line | ||
|
||
# Add the library path explicitly | ||
link_directories(${ZeroMQ_LIBRARY_DIRS}) # Add this line | ||
set(ZeroMQ_LIBS ${ZeroMQ_LIBRARIES}) | ||
endif() | ||
|
||
# Find ZeroMQ library | ||
find_package(ZeroMQ QUIET) | ||
|
||
# Check if ZeroMQ was found | ||
if(ZeroMQ_FOUND) | ||
message(STATUS "[ZeroMQ] found") | ||
# message(STATUS "[ZeroMQ] found") | ||
|
||
# Add QT definitions if needed | ||
add_definitions(${QT_DEFINITIONS}) | ||
add_definitions(-DQT_PLUGIN) | ||
# add_definitions(${QT_DEFINITIONS}) | ||
# add_definitions(-DQT_PLUGIN) | ||
|
||
# Wrap the UI file for Qt | ||
QT5_WRAP_UI(UI_SRC datastream_zmq.ui) | ||
# QT5_WRAP_UI ( UI_SRC datastream_zmq.ui ) | ||
|
||
# Add the DataStreamZMQ library | ||
add_library(DataStreamZMQ SHARED datastream_zmq.cpp ${UI_SRC}) | ||
# add_library(DataStreamZMQ SHARED datastream_zmq.cpp ${UI_SRC} ) | ||
|
||
# Link Qt5Widgets and the plotjuggler_base target to DataStreamZMQ | ||
target_link_libraries(DataStreamZMQ ${Qt5Widgets_LIBRARIES} plotjuggler_base) | ||
# target_link_libraries(DataStreamZMQ ${Qt5Widgets_LIBRARIES} plotjuggler_base) | ||
|
||
# Handle different library linking for vcpkg, conan, or manual builds | ||
if(BUILDING_WITH_VCPKG OR BUILDING_WITH_CONAN) | ||
target_link_libraries(DataStreamZMQ libzmq-static) | ||
else() | ||
target_include_directories(DataStreamZMQ PRIVATE ${ZeroMQ_INCLUDE_DIRS}) | ||
target_link_libraries(DataStreamZMQ zmq) # Changed this to just 'zmq' | ||
endif() | ||
# if(BUILDING_WITH_VCPKG OR BUILDING_WITH_CONAN) | ||
# target_link_libraries(DataStreamZMQ libzmq-static) | ||
# else() | ||
# target_link_libraries(DataStreamZMQ ${ZeroMQ_LIBRARIES}) | ||
# endif() | ||
|
||
# Install the plugin | ||
install(TARGETS DataStreamZMQ DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY}) | ||
# install(TARGETS DataStreamZMQ DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} ) | ||
else() | ||
message(STATUS "[ZeroMQ] not found. Skipping plugin DataStreamZMQ.") | ||
message("[ZeroMQ] not found. Skipping plugin DataStreamZMQ.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters