add vendor packages

This commit is contained in:
EricX-Zhao
2026-02-12 00:47:10 +03:00
parent fae9d9f8ba
commit 7fffde2fd6
45 changed files with 930 additions and 20 deletions
@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 3.8)
project(ceres_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(
ceres_vendor
GIT_REPOSITORY https://github.com/EricX-Zhao/ceres-solver.git
GIT_TAG suitesparse # 锁定 2.0.0 标签
GIT_SHALLOW TRUE
)
# set(SUITESPARSE OFF CACHE BOOL "" FORCE)
set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
set(BUILD_EXAMPLES OFF CACHE BOOL "BUILD_EXAMPLES" FORCE)
set(BUILD_TESTING OFF CACHE BOOL "BUILD_TESTING" FORCE)
set(BUILD_BENCHMARKS OFF CACHE BOOL "BUILD_BENCHMARKS" FORCE)
set(CMAKE_BUILD_TYPE Release)
FetchContent_MakeAvailable(ceres_vendor)
@@ -0,0 +1,17 @@
<?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>ceres_vendor</name>
<version>2.1.0</version>
<description>ceres 2.1.0</description>
<maintainer email="ericzhao0325@163.com">ericx</maintainer>
<license>TODO: License declaration</license>
<depend>eigen3_vendor</depend>
<depend>glog_vendor</depend>
<depend>suitesparse_vendor</depend>
<export>
<build_type>cmake</build_type>
</export>
</package>