1 Star 1 Fork 1

XiaoJake/extensible-module-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.0)
project(Localization)
SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../bin/")
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/lib/)
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/lib )
link_directories(${CMAKE_ARCHIVE_OUTPUT_DIRECTORY} ${CMAKE_SOURCE_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
if(UNIX)
add_definitions(-std=c++17)
add_definitions(-D linux)
endif(UNIX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(Protobuf REQUIRED)
option (USE_GLOG "whether to use glog as the logger" ON)
#SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "D:/Program Files (x86)/glog/lib/cmake/glog")
if(USE_GLOG)
message(STATUS "will use glog")
find_package(Glog REQUIRED)
find_package(Gflags REQUIRED)
endif(USE_GLOG)
include_directories(common)
include_directories(common/proto)
include_directories(3rdparty/include)
include_directories(${Protobuf_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR})
link_directories(3rdparty/lib)
aux_source_directory(${CMAKE_SOURCE_DIR}/common/proto PROTO)
set(COMMON_SRC ${PROTO})
###please use "add_subdirectory" function to add your cmake source file
MACRO(SUBDIRLIST result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${curdir}/${child})
LIST(APPEND dirlist ${child})
ENDIF()
ENDFOREACH()
SET(${result} ${dirlist})
ENDMACRO()
set(MODULE ${CMAKE_SOURCE_DIR}/module)
SUBDIRLIST(SUBDIRS ${MODULE})
FOREACH(subdir ${SUBDIRS})
ADD_SUBDIRECTORY(${MODULE}/${subdir})
ENDFOREACH()
# add_subdirectory(module/data_sender)
# #add_subdirectory(data_reader_block)
add_subdirectory(system/src)
# add_subdirectory(module/module_pf_localizer)
# add_subdirectory(module/data_reader)
# add_subdirectory(module/sensor)
# add_subdirectory(module/reflector_slam)
# #add_subdirectory(recoder)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaojake/extensible-module-framework.git
git@gitee.com:xiaojake/extensible-module-framework.git
xiaojake
extensible-module-framework
extensible-module-framework
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385