1 Star 0 Fork 0

hanhai-modules/sensor-lidar-service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
peixu 提交于 2024-04-26 13:47 . 提交信息
# Copyright (c) 2024 Black Sesame Technologies
#
# This program is also distributed under the terms of the Apache 2.0
# License.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.12)
include(GNUInstallDirs)
project(lidar_service)
if (CMAKE_EXTRA_SYSTEM MATCHES QNX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_QNX_SOURCE -D_XOPEN_SOURCE=700 -O2 -ggdb -g -no-pie -D_GLIBCXX_USE_C99 -std=c++11 -fPIC")
add_definitions(-DQNX)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
add_compile_options("-O2")
endif()
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(NOT DEFINED P_VERSION)
set(P_VERSION 3.0.0.0)
set(P_VERSION_SO 3)
endif()
add_subdirectory(data_plugin)
add_subdirectory(hal_plugin)
add_subdirectory(client)
add_subdirectory(sensor_service)
install(DIRECTORY client data_plugin hal_plugin include sensor_service DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hanhai/source/lidar-service/)
install(FILES CMakeLists.txt DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hanhai/source/lidar-service/)
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hanhai/source/lidar-service/)
install(FILES README.md DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hanhai/source/lidar-service/)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hanhai-modules/sensor-lidar-service.git
git@gitee.com:hanhai-modules/sensor-lidar-service.git
hanhai-modules
sensor-lidar-service
sensor-lidar-service
master

搜索帮助