1 Star 0 Fork 2

AMOVLAB/Gimbal-SDK-Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
dou 提交于 2022-07-16 17:16 . first commit
cmake_minimum_required(VERSION 3.4...3.18)
project(amov_gimbal_sdk_python)
add_compile_options(-std=c++11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")
set(CMAKE_BUILD_TYPE "Release")
set(PYBIND11_CPP_STANDARD -std=c++11)
set(serial_SRCS
gimbal-sdk/src/serial.cc
gimbal-sdk/include/serial/serial.h
gimbal-sdk/include/serial/v8stdint.h
)
list(APPEND serial_SRCS gimbal-sdk/src/impl/unix.cc)
list(APPEND serial_SRCS gimbal-sdk/src/impl/list_ports/list_ports_linux.cc)
include_directories(gimbal-sdk/include
${pybind11_INCLUDE_DIRS}
)
add_subdirectory(pybind11)
pybind11_add_module(amov_gimbal_sdk_python src/main.cpp
gimbal-sdk/include/gimbal/crc32.cpp
gimbal-sdk/include/gimbal/gimbal_cmd.cpp
${serial_SRCS}
)
# EXAMPLE_VERSION_INFO is defined by setup.py and passed into the C++ code as a
# define (VERSION_INFO) here.
target_compile_definitions(amov_gimbal_sdk_python
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amovlab/gimbal-sdk-python.git
git@gitee.com:amovlab/gimbal-sdk-python.git
amovlab
gimbal-sdk-python
Gimbal-SDK-Python
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385