-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbb9d1c
commit 2d2a5dd
Showing
5 changed files
with
19 additions
and
99 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,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() |
This file was deleted.
Oops, something went wrong.
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