Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply beman standard. #24

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

cmake_minimum_required(VERSION 3.23)

option(BUILD_TESTING "Build tests" ON)

project(
beman.inplace_vector
VERSION 1.0.0
Expand All @@ -15,9 +13,19 @@ project(
LANGUAGES CXX
)

# [CMAKE.SKIP_TESTS]
option(
BEMAN_INPLACE_VECTOR_BUILD_TESTS
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

include(GNUInstallDirs)

add_library(beman.inplace_vector INTERFACE)
# [CMAKE.LIBRARY_ALIAS]
add_library(beman::inplace_vector ALIAS beman.inplace_vector)

target_include_directories(
beman.inplace_vector
INTERFACE
Expand All @@ -42,7 +50,7 @@ install(
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/inplace_vector/inplace_vector.hpp"
)

if(BUILD_TESTING)
if(BEMAN_INPLACE_VECTOR_BUILD_TESTS)
include(CTest)
add_subdirectory(src/beman/inplace_vector/tests)
add_subdirectory(tests/beman/inplace_vector)
endif()
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
SPDX-License-Identifier: <SPDX License Expression>
-->

# beman.inplace\_vector
# beman.inplace\_vector: Dynamically-resizable vector with fixed capacity

![Continuous Integration Tests](https://github.com/beman-project/inplace_vector/actions/workflows/ci_tests.yml/badge.svg)
![Code Format](https://github.com/beman-project/inplace_vector/actions/workflows/pre-commit.yml/badge.svg)

A dynamically-resizable vector with fixed capacity and embedded storage

## Implements

- [`inplace_vector` P0843R14](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p0843r14.html)
Expand Down