Add support for RK3576 platform and restructure vendor packages directory

This commit is contained in:
EricX-Zhao
2026-07-07 10:07:30 +03:00
parent 31d7fab23a
commit ea0313a66d
57 changed files with 116 additions and 34 deletions
@@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 3.8)
project(asio_vendor)
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(
asio_vendor
GIT_REPOSITORY https://github.com/chriskohlhoff/asio.git
GIT_TAG asio-1-28-1
GIT_SHALLOW TRUE
)
FetchContent_GetProperties(asio_vendor)
if (NOT asio_vendor_POPULATED)
FetchContent_Populate(asio_vendor)
message(STATUS "asio_vendor_SOURCE_DIR: ${asio_vendor_SOURCE_DIR}")
install(
DIRECTORY ${asio_vendor_SOURCE_DIR}/asio/include/
DESTINATION include
PATTERN ".gitignore" EXCLUDE # 排除所有 txt 文件
PATTERN "*.am" EXCLUDE # 排除 docs 目录
)
endif()
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>asio_vendor</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="ericzhao0325@163.com">ericx</maintainer>
<license>TODO: License declaration</license>
<export>
<build_type>cmake</build_type>
</export>
</package>