Add support for RK3576 platform and restructure vendor packages directory
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
URL https://github.com/ceres-solver/ceres-solver/archive/refs/tags/2.1.0.tar.gz
|
||||
# SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ext/
|
||||
)
|
||||
|
||||
set(MINIGLOG ON CACHE BOOL "Use a stripped down version of glog." FORCE)
|
||||
set(GFLAGS OFF CACHE BOOL "Enable Google Flags." FORCE)
|
||||
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build Shared Library" 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)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAX_LOG_LEVEL=-1")
|
||||
|
||||
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>
|
||||
Reference in New Issue
Block a user