Add support for RK3576 platform and restructure vendor packages directory
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(liblz4_vendor)
|
||||
|
||||
# ament_package(CONFIG_EXTRAS liblz4_vendor-extras.cmake)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
|
||||
# uncomment the following section in order to fill in
|
||||
# further dependencies manually.
|
||||
# find_package(<dependency> REQUIRED)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
liblz4_vendor
|
||||
URL https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz
|
||||
SOURCE_SUBDIR build/cmake
|
||||
)
|
||||
|
||||
set(BUILD_STATIC_LIBS OFF CACHE BOOL "BUILD_STATIC_LIBS." FORCE)
|
||||
set(LZ4_BUILD_LEGACY_LZ4C OFF CACHE BOOL "LZ4_BUILD_LEGACY_LZ4C." FORCE)
|
||||
set(LZ4_BUILD_CLI OFF CACHE BOOL "LZ4_BUILD_CLI." FORCE)
|
||||
set(LZ4_BUNDLED_MODE OFF CACHE BOOL "LZ4_BUILD_CLI." FORCE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
FetchContent_MakeAvailable(liblz4_vendor)
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
|
||||
<package format="2">
|
||||
<name>liblz4_vendor</name>
|
||||
<version>0.0.0</version>
|
||||
<maintainer email="ericzhao0325@163.com">ericx</maintainer>
|
||||
<description>LZ4 compression vendor package, providing a dependency for LZ4.</description>
|
||||
<license>Apache License 2.0</license> <!-- the contents of this package are Apache 2.0 -->
|
||||
<license>BSD</license> <!-- The LZ4 library is BSD; see README.md for more information -->
|
||||
<license>GPLv2</license> <!-- All other LZ4 files are GPLv2; see README.md for more information -->
|
||||
|
||||
<url type="website">https://github.com/lz4/lz4/</url>
|
||||
|
||||
<export>
|
||||
<build_type>cmake</build_type>
|
||||
</export>
|
||||
</package>
|
||||
Reference in New Issue
Block a user