1 Star 0 Fork 0

Velcon-Zheng/bamtools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
David Seifert 提交于 2021-07-31 15:46 . CMakeLists.txt: CMake >= 3.11
cmake_minimum_required(VERSION 3.11)
# need 3.11 for INCLUDE_GUARD_NAME in GENERATE_EXPORT_HEADER
project(
BamTools
LANGUAGES CXX
VERSION 2.5.2)
# Set Release type for builds where CMAKE_BUILD_TYPE is unset
# This is usually a good default as this implictly enables
#
# CXXFLAGS = -O3 -DNDEBUG
#
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# Adhere to GNU filesystem layout conventions
include(GNUInstallDirs)
# By default build bamtools as a static library
# Most users will prefer static libraries, distributions
# can always switch the standard CMake variable over to ON.
option(BUILD_SHARED_LIBS "Build all libraries as shared" OFF)
# If planning to run in Node.js environment, run:
# cmake -DEnableNodeJS=true
option(EnableNodeJS "Enable running in a Node.js environment" OFF)
# find system JsonCpp
find_package(PkgConfig)
pkg_search_module(JSONCPP jsoncpp>=1)
set(BAMTOOLS_PRIVATE_DEPS zlib)
if(JSONCPP_FOUND)
message("Found system JsonCpp, not using bundled version")
set(BAMTOOLS_PRIVATE_DEPS "${BAMTOOLS_PRIVATE_DEPS} jsoncpp")
else()
message("Did NOT find system JsonCpp, instead using bundled version")
set(JSONCPP_LDFLAGS jsoncpp)
set(JSONCPP_INCLUDE_DIRS ${BamTools_SOURCE_DIR}/src/third_party/jsoncpp)
endif()
add_subdirectory(src)
# tests
include(CTest)
add_subdirectory(tests)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Velcon-Zheng/bamtools.git
git@gitee.com:Velcon-Zheng/bamtools.git
Velcon-Zheng
bamtools
bamtools
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385