1 Star 0 Fork 1

backhorse / imu_utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
gaowenliang 提交于 2018-02-28 00:18 . remove backward, add readme
cmake_minimum_required(VERSION 2.8.3)
project(imu_utils)
## Compile as C++11, supported in ROS Kinetic and newer
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
#-DEIGEN_USE_MKL_ALL")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -fPIC")
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED
roscpp
std_msgs
geometry_msgs
nav_msgs
code_utils
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(
${catkin_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
catkin_package()
set(ACC_LIB_SOURCE_FILES
${PROJECT_SOURCE_DIR}/src/acc_lib/allan_acc.cpp
${PROJECT_SOURCE_DIR}/src/acc_lib/fitallan_acc.cpp
)
set(GYR_LIB_SOURCE_FILES
${PROJECT_SOURCE_DIR}/src/gyr_lib/allan_gyr.cpp
${PROJECT_SOURCE_DIR}/src/gyr_lib/fitallan_gyr.cpp
)
add_executable(imu_an
src/imu_an.cpp
${GYR_LIB_SOURCE_FILES}
${ACC_LIB_SOURCE_FILES}
)
target_link_libraries(imu_an ${catkin_LIBRARIES} ${OpenCV_LIBS} ${CERES_LIBRARIES})
1
https://gitee.com/tgj891/imu_utils.git
git@gitee.com:tgj891/imu_utils.git
tgj891
imu_utils
imu_utils
master

搜索帮助