Skip to content

Commit

Permalink
cmake files moved
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Feb 8, 2024
1 parent fbb9d1c commit 2d2a5dd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 99 deletions.
File renamed without changes.
File renamed without changes.
48 changes: 19 additions & 29 deletions plotjuggler_plugins/DataLoadMCAP/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,33 @@

if(BUILDING_WITH_CONAN)

find_package(zstd CONFIG REQUIRED)
set(Zstd_LIBRARIES zstd::libzstd_static)
set(Zstd_FOUND ON)

else()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
find_package(Zstd QUIET)

find_package(Zstd REQUIRED)
endif()
###########################################

if(Zstd_FOUND)

include_directories( ${Zstd_INCLUDE_DIRS} )
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)

add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
QT5_WRAP_UI ( UI_SRC dialog_mcap.ui )

QT5_WRAP_UI ( UI_SRC dialog_mcap.ui )
SET( SRC
mcap.cpp
dataload_mcap.cpp
dialog_mcap.cpp
)

SET( SRC
mcap.cpp
dataload_mcap.cpp
dialog_mcap.cpp
)
add_library(DataLoadMCAP SHARED ${SRC} ${UI_SRC} )
target_include_directories(DataLoadMCAP PRIVATE
$<BUILD_INTERFACE:${Zstd_INCLUDE_DIRS}> )

add_library(DataLoadMCAP SHARED ${SRC} ${UI_SRC} )
target_link_libraries(DataLoadMCAP
${Qt5Widgets_LIBRARIES}
${Qt5Xml_LIBRARIES}
${Zstd_LIBRARIES}
lz4_static
plotjuggler_base )
target_link_libraries(DataLoadMCAP
${Qt5Widgets_LIBRARIES}
${Qt5Xml_LIBRARIES}
${Zstd_LIBRARIES}
lz4_static
plotjuggler_base )

install(TARGETS DataLoadMCAP DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} )
install(TARGETS DataLoadMCAP DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} )

else()
message("MCAP dependencies (Zstd) not found")
endif()
69 changes: 0 additions & 69 deletions plotjuggler_plugins/DataLoadParquet/cmake/FindZstd.cmake

This file was deleted.

1 change: 0 additions & 1 deletion plotjuggler_plugins/DataStreamZMQ/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ elseif(BUILDING_WITH_CONAN)
message(STATUS "Finding ZeroMQ with conan")
else()
message(STATUS "Finding ZeroMQ without package managers")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
set(ZeroMQ_LIBS ${ZeroMQ_LIBRARIES})
endif()

Expand Down

0 comments on commit 2d2a5dd

Please sign in to comment.