1 Star 0 Fork 4

syw/Svar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 2.8)
project(Svar)
include(cmake/PICMake.cmake)
set(CMAKE_CXX_STANDARD 11)
option(BUILD_PYTHON "build svarpy module to support call python from c++" OFF)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
pi_git_hash(GIT_VERSION)
add_definitions(-DBUILD_VERSION=\"${GIT_VERSION}\")
include_directories(src src/Svar src/svar_app/GSLAM/core)
pi_add_target(svar BIN src/svar_app REQUIRED System LTO)
pi_add_target(svar_cbor SHARED src/modules/svar_cbor REQUIRED System LTO)
pi_add_target(sample_module SHARED src/modules/sample_module REQUIRED System LTO)
if(BUILD_PYTHON)
pi_add_target(svarpy SHARED src/python/svarpy/src REQUIRED Python System LTO)
endif()
pi_report_targets()
pi_install(TARGETS svar sample_module svar_cbor svarpy HEADERS src/Svar CMAKE "${PROJECT_SOURCE_DIR}/cmake/FindSvar.cmake.in")
#####################################################################
# Add Tab Completion Support
if(UNIX)
install(SCRIPT ${CMAKE_CURRENT_LIST_DIR}/cmake/tab_completion.cmake)
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hitsyw/Svar.git
[email protected]:hitsyw/Svar.git
hitsyw
Svar
Svar
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385