代码拉取完成,页面将自动刷新
# 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/)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。